#4F2AB5#4F2AB5
#4F2AB5 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 42.8% C 0.202 H 286.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).
Color values
| HEX | #4F2AB5 |
|---|---|
| RGB | rgb(79, 42, 181) |
| HSL | hsl(256, 62%, 44%) |
| HSV | hsv(256, 77%, 71%) |
| CMYK | cmyk(56.4%, 76.8%, 0%, 29%) |
| CIE-LAB | lab(31.01, 50.92, -67.20) |
| CIE-LCH | lch(31.01, 84.31, 307.15°) |
| OKLab | oklab(42.81% 0.0573 -0.1935) |
| OKLCH | oklch(42.81% 0.202 286.5) |
| XYZ | xyz(12.3904, 6.6537, 44.3385) |
| Luminance | 0.0665 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 4.03
Indigo Blue
#3A18B1
ΔE00 4.14
Violet Blue
#510AC9
ΔE00 4.14
Blurple
#5539CC
ΔE00 4.76
Blue With A Hint Of Purple
#533CC6
ΔE00 4.78
Ocean Blue
#4F42B5
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F2AB5 #90B52A
analogous
#2A4AB5 #4F2AB5 #942AB5
triadic
#4F2AB5 #B54F2A #2AB54F
tetradic
#4F2AB5 #B52A4A #90B52A #2AB594
square
#4F2AB5 #B52A4A #90B52A #2AB594
split-complementary
#4F2AB5 #B5942A #4AB52A
monochromatic
#241352 #391E83 #4F2AB5 #6D48D4 #9579E0
Accessibility & contrast
On white
9.01
#4F2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#4F2AB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F2AB5
9.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F2AB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F2AB5 | 1.00 | 9.01 | 2.33 | 9.01 |
| #FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#1F526E
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #4f2ab5; /* rgb */ color: rgb(79, 42, 181); /* oklch */ color: oklch(42.8% 0.202 286.5);
Tailwind
colors: {
custom: {
50: '#8c68cc',
500: '#4f2ab5',
950: '#000000',
},
}SCSS
$custom: #4f2ab5; $custom-light: #8c68cc; $custom-dark: #000000;
JSON
{
"hex": "#4f2ab5",
"rgb": {
"r": 79,
"g": 42,
"b": 181
},
"hsl": {
"h": 255.971,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.42806,
"c": 0.20176,
"h": 286.5
},
"luminance": 0.06654
}Semantic roles & 50–950 ramp
primary
#4F2AB5
secondary
#B1C873
accent
#E542BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82