#40157f Color Information

In a RGB color space, hex #40157f is composed of 25.1% red, 8.2% green and 49.8% blue. Whereas in a CMYK color space, it is composed of 49.6% cyan, 83.5% magenta, 0% yellow and 50.2% black. It has a hue angle of 264.3 degrees, a saturation of 71.6% and a lightness of 29%. #40157f color hex could be obtained by blending #802afe with #000000. Closest websafe color is: #330066.

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

#40157f color description : Dark violet.

#40157f Color Conversion

The hexadecimal color #40157f has RGB values of R:64, G:21, B:127 and CMYK values of C:0.5, M:0.83, Y:0, K:0.5. Its decimal value is 4199807.

Hex triplet 40157f #40157f
RGB Decimal 64, 21, 127 rgb(64,21,127)
RGB Percent 25.1, 8.2, 49.8 rgb(25.1%,8.2%,49.8%)
CMYK 50, 83, 0, 50
HSL 264.3°, 71.6, 29 hsl(264.3,71.6%,29%)
HSV (or HSB) 264.3°, 83.5, 49.8
Web Safe 330066 #330066
CIE-LAB 20.668, 43.358, -51.146
XYZ 6.213, 3.159, 20.36
xyY 0.209, 0.106, 3.159
CIE-LCH 20.668, 67.051, 310.289
CIE-LUV 20.668, 5.071, -59.227
Hunter-Lab 17.772, 31.296, -55.481
Binary 01000000, 00010101, 01111111

Color Schemes with #40157f

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

Alternatives to #40157f

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

Similar Colors

#40157f Preview

Text with hexadecimal color #40157f

This text has a font color of #40157f.

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

This paragraph has a background color of #40157f.

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

This element has a border color of #40157f.

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

Shades and Tints of #40157f

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, #050209 is the darkest color, while #faf7fe is the lightest one.

Shade Color Variation
Tint Color Variation

Tones of #40157f

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

Tone Color Variation

Color Blindness Simulator

Below, you can see how #40157f 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
  • #2e2e2e Achromatopsia 0.005% of the population
  • #32293e Atypical Achromatopsia 0.001% of the population
Dichromacy
  • #003a72 Protanopia 1% of men
  • #003d63 Deuteranopia 1% of men
  • #323e42 Tritanopia 0.001% of the population
Trichromacy
  • #172d76 Protanomaly 1% of men, 0.01% of women
  • #172f6d Deuteranomaly 6% of men, 0.4% of women
  • #372f58 Tritanomaly 0.01% of the population