#40157a Color Information

In a RGB color space, hex #40157a is composed of 25.1% red, 8.2% green and 47.8% blue. Whereas in a CMYK color space, it is composed of 47.5% cyan, 82.8% magenta, 0% yellow and 52.2% black. It has a hue angle of 265.5 degrees, a saturation of 70.6% and a lightness of 28%. #40157a color hex could be obtained by blending #802af4 with #000000. Closest websafe color is: #330066.

    • R 25
    • G 8
    • B 48
    RGB color chart
    • C 48
    • M 83
    • Y 0
    • K 52
    CMYK color chart

#40157a color description : Dark violet.

#40157a Color Conversion

The hexadecimal color #40157a has RGB values of R:64, G:21, B:122 and CMYK values of C:0.48, M:0.83, Y:0, K:0.52. Its decimal value is 4199802.

Hex triplet 40157a #40157a
RGB Decimal 64, 21, 122 rgb(64,21,122)
RGB Percent 25.1, 8.2, 47.8 rgb(25.1%,8.2%,47.8%)
CMYK 48, 83, 0, 52
HSL 265.5°, 70.6, 28 hsl(265.5,70.6%,28%)
HSV (or HSB) 265.5°, 82.8, 47.8
Web Safe 330066 #330066
CIE-LAB 20.169, 42.013, -48.782
XYZ 5.895, 3.031, 18.686
xyY 0.213, 0.11, 3.031
CIE-LCH 20.169, 64.38, 310.737
CIE-LUV 20.169, 5.678, -56.206
Hunter-Lab 17.411, 29.965, -51.443
Binary 01000000, 00010101, 01111010

Color Schemes with #40157a

Complementary Color
Analogous Color
Split Complementary Color
Triadic Color
Tetradic Color
Monochromatic Color

Alternatives to #40157a

Below, you can see some colors close to #40157a. Having a set of related colors can be useful if you need an inspirational alternative to your original color choice.

Similar Colors

#40157a Preview

Text with hexadecimal color #40157a

This text has a font color of #40157a.

<span style="color:#40157a;">Text here</span>
#40157a background color

This paragraph has a background color of #40157a.

<p style="background-color:#40157a;">Content here</p>
#40157a border color

This element has a border color of #40157a.

<div style="border:1px solid #40157a;">Content here</div>
CSS codes
.text {color:#40157a;}
.background {background-color:#40157a;}
.border {border:1px solid #40157a;}

Shades and Tints of #40157a

A shade is achieved by adding black to any pure hue, while a tint is created by mixing white to any pure color. In this example, #030105 is the darkest color, while #f7f3fd is the lightest one.

Shade Color Variation
Tint Color Variation

Tones of #40157a

A tone is produced by adding gray to any pure hue. In this case, #474749 is the less saturated color, while #3e058b is the most saturated one.

Tone Color Variation

Color Blindness Simulator

Below, you can see how #40157a is perceived by people affected by a color vision deficiency. This can be useful if you need to ensure your color combinations are accessible to color-blind users.

Monochromacy
  • #2d2d2d Achromatopsia 0.005% of the population
  • #31283c Atypical Achromatopsia 0.001% of the population
Dichromacy
  • #003970 Protanopia 1% of men
  • #003c62 Deuteranopia 1% of men
  • #353c40 Tritanopia 0.001% of the population
Trichromacy
  • #172c73 Protanomaly 1% of men, 0.01% of women
  • #172e6a Deuteranomaly 6% of men, 0.4% of women
  • #392e55 Tritanomaly 0.01% of the population