#4F308E#4F308E
#4F308E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.1% C 0.148 H 293.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).
Color values
| HEX | #4F308E |
|---|---|
| RGB | rgb(79, 48, 142) |
| HSL | hsl(260, 49%, 37%) |
| HSV | hsv(260, 66%, 56%) |
| CMYK | cmyk(44.4%, 66.2%, 0%, 44.3%) |
| CIE-LAB | lab(28.72, 36.51, -47.31) |
| CIE-LCH | lch(28.72, 59.76, 307.66°) |
| OKLab | oklab(40.13% 0.0598 -0.1351) |
| OKLCH | oklch(40.13% 0.148 293.9) |
| XYZ | xyz(9.1626, 5.7289, 26.2090) |
| Luminance | 0.0573 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.48
Darkslateblue
#483D8B
ΔE00 4.54
Blueberry
#464196
ΔE00 5.85
Ocean Blue
#4F42B5
ΔE00 7.64
Indigo Blue
#3A18B1
ΔE00 7.65
Indigo
#4B0082
ΔE00 7.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4F308E #6F8E30
analogous
#30408E #4F308E #7E308E
triadic
#4F308E #8E4F30 #308E4F
tetradic
#4F308E #8E3040 #6F8E30 #308E7E
square
#4F308E #8E3040 #6F8E30 #308E7E
split-complementary
#4F308E #8E7E30 #408E30
monochromatic
#1C1133 #362160 #4F308E #683FBC #8C6BCD
Accessibility & contrast
On white
9.79
#4F308E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#4F308E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4F308E
9.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4F308E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4F308E | 1.00 | 9.79 | 2.15 | 9.79 |
| #FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#3E465A
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #4f308e; /* rgb */ color: rgb(79, 48, 142); /* oklch */ color: oklch(40.1% 0.148 293.9);
Tailwind
colors: {
custom: {
50: '#866ab0',
500: '#4f308e',
950: '#000000',
},
}SCSS
$custom: #4f308e; $custom-light: #866ab0; $custom-dark: #000000;
JSON
{
"hex": "#4f308e",
"rgb": {
"r": 79,
"g": 48,
"b": 142
},
"hsl": {
"h": 259.787,
"s": 49.474,
"l": 37.255
},
"oklch": {
"l": 0.40127,
"c": 0.14776,
"h": 293.9
},
"luminance": 0.05729
}Semantic roles & 50–950 ramp
primary
#4F308E
secondary
#9AB465
accent
#D94FAB
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F