#4D2C98#4D2C98
#4D2C98 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.165 H 291.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).
Color values
| HEX | #4D2C98 |
|---|---|
| RGB | rgb(77, 44, 152) |
| HSL | hsl(258, 55%, 38%) |
| HSV | hsv(258, 71%, 60%) |
| CMYK | cmyk(49.3%, 71.1%, 0%, 40.4%) |
| CIE-LAB | lab(28.50, 41.26, -53.82) |
| CIE-LCH | lch(28.50, 67.82, 307.47°) |
| OKLab | oklab(40.18% 0.0595 -0.1543) |
| OKLCH | oklch(40.18% 0.165 291.1) |
| XYZ | xyz(9.6271, 5.6458, 30.2822) |
| Luminance | 0.0565 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.96
Indigo Blue
#3A18B1
ΔE00 5.63
Darkslateblue
#483D8B
ΔE00 5.81
Blueberry
#464196
ΔE00 6.46
Ocean Blue
#4F42B5
ΔE00 7.05
Indigo
#4B0082
ΔE00 7.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D2C98 #77982C
analogous
#2C4198 #4D2C98 #832C98
triadic
#4D2C98 #984D2C #2C984D
tetradic
#4D2C98 #982C41 #77982C #2C9883
square
#4D2C98 #982C41 #77982C #2C9883
split-complementary
#4D2C98 #98832C #41982C
monochromatic
#1D1139 #351E69 #4D2C98 #663BC6 #8B6AD4
Accessibility & contrast
On white
9.86
#4D2C98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#4D2C98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D2C98
9.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D2C98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D2C98 | 1.00 | 9.86 | 2.13 | 9.86 |
| #FFFFFF | 9.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#004196
Tritanopia (blue-blind)
#35485F
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #4d2c98; /* rgb */ color: rgb(77, 44, 152); /* oklch */ color: oklch(40.2% 0.165 291.1);
Tailwind
colors: {
custom: {
50: '#8668b7',
500: '#4d2c98',
950: '#000000',
},
}SCSS
$custom: #4d2c98; $custom-light: #8668b7; $custom-dark: #000000;
JSON
{
"hex": "#4d2c98",
"rgb": {
"r": 77,
"g": 44,
"b": 152
},
"hsl": {
"h": 258.333,
"s": 55.102,
"l": 38.431
},
"oklch": {
"l": 0.40176,
"c": 0.16542,
"h": 291.1
},
"luminance": 0.05646
}Semantic roles & 50–950 ramp
primary
#4D2C98
secondary
#A1BB65
accent
#DE49B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80