#4F2CAB#4F2CAB
#4F2CAB is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.188 H 288.1°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).
Color values
| HEX | #4F2CAB |
|---|---|
| RGB | rgb(79, 44, 171) |
| HSL | hsl(257, 59%, 42%) |
| HSV | hsv(257, 74%, 67%) |
| CMYK | cmyk(53.8%, 74.3%, 0%, 32.9%) |
| CIE-LAB | lab(30.41, 47.08, -62.21) |
| CIE-LCH | lch(30.41, 78.01, 307.12°) |
| OKLab | oklab(42.1% 0.0584 -0.1789) |
| OKLCH | oklch(42.1% 0.188 288.1) |
| XYZ | xyz(11.4737, 6.4033, 39.1516) |
| Luminance | 0.0640 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.43
Violet Blue
#510AC9
ΔE00 5.27
Purple Blue
#5D21D0
ΔE00 5.30
Blue With A Hint Of Purple
#533CC6
ΔE00 5.41
Blurple
#5539CC
ΔE00 5.61
Ocean Blue
#4F42B5
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F2CAB #88AB2C
analogous
#2C49AB #4F2CAB #8E2CAB
triadic
#4F2CAB #AB4F2C #2CAB4F
tetradic
#4F2CAB #AB2C49 #88AB2C #2CAB8E
square
#4F2CAB #AB2C49 #88AB2C #2CAB8E
split-complementary
#4F2CAB #AB8E2C #49AB2C
monochromatic
#22134A #391F7A #4F2CAB #6B45CF #9276DC
Accessibility & contrast
On white
9.21
#4F2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#4F2CAB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F2CAB
9.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F2CAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F2CAB | 1.00 | 9.21 | 2.28 | 9.21 |
| #FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#2A4F69
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #4f2cab; /* rgb */ color: rgb(79, 44, 171); /* oklch */ color: oklch(42.1% 0.188 288.1);
Tailwind
colors: {
custom: {
50: '#8a69c5',
500: '#4f2cab',
950: '#000000',
},
}SCSS
$custom: #4f2cab; $custom-light: #8a69c5; $custom-dark: #000000;
JSON
{
"hex": "#4f2cab",
"rgb": {
"r": 79,
"g": 44,
"b": 171
},
"hsl": {
"h": 256.535,
"s": 59.07,
"l": 42.157
},
"oklch": {
"l": 0.421,
"c": 0.18814,
"h": 288.1
},
"luminance": 0.06404
}Semantic roles & 50–950 ramp
primary
#4F2CAB
secondary
#ACC36F
accent
#E246B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82