#4D237C#4D237C
#4D237C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.143 H 301.1°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).
Color values
| HEX | #4D237C |
|---|---|
| RGB | rgb(77, 35, 124) |
| HSL | hsl(268, 56%, 31%) |
| HSV | hsv(268, 72%, 49%) |
| CMYK | cmyk(37.9%, 71.8%, 0%, 51.4%) |
| CIE-LAB | lab(24.43, 38.24, -43.02) |
| CIE-LCH | lch(24.43, 57.56, 311.64°) |
| OKLab | oklab(36.55% 0.074 -0.1225) |
| OKLCH | oklch(36.55% 0.143 301.1) |
| XYZ | xyz(7.2988, 4.2350, 19.4978) |
| Luminance | 0.0423 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.18
Royal Purple (survey)
#4B006E
ΔE00 5.61
Indigo (survey)
#380282
ΔE00 6.58
Rebeccapurple
#663399
ΔE00 6.66
Darkslateblue
#483D8B
ΔE00 7.81
Midnight Blue
#191970
ΔE00 8.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D237C #527C23
analogous
#23257C #4D237C #79237C
triadic
#4D237C #7C4D23 #237C4D
tetradic
#4D237C #7C2325 #527C23 #237C79
square
#4D237C #7C2325 #527C23 #237C79
split-complementary
#4D237C #7C7923 #257C23
monochromatic
#12081D #2F164C #4D237C #6B30AC #894DCD
Accessibility & contrast
On white
11.37
#4D237C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#4D237C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D237C
11.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D237C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D237C | 1.00 | 11.37 | 1.85 | 11.37 |
| #FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#43384C
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #4d237c; /* rgb */ color: rgb(77, 35, 124); /* oklch */ color: oklch(36.5% 0.143 301.1);
Tailwind
colors: {
custom: {
50: '#8361a3',
500: '#4d237c',
950: '#000000',
},
}SCSS
$custom: #4d237c; $custom-light: #8361a3; $custom-dark: #000000;
JSON
{
"hex": "#4d237c",
"rgb": {
"r": 77,
"g": 35,
"b": 124
},
"hsl": {
"h": 268.315,
"s": 55.975,
"l": 31.176
},
"oklch": {
"l": 0.36545,
"c": 0.14316,
"h": 301.1
},
"luminance": 0.04235
}Semantic roles & 50–950 ramp
primary
#4D237C
secondary
#80AF4C
accent
#DF4998
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B050F
muted
#7C797F