#4D236E#4D236E
#4D236E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.127 H 306.8°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).
Color values
| HEX | #4D236E |
|---|---|
| RGB | rgb(77, 35, 110) |
| HSL | hsl(274, 52%, 28%) |
| HSV | hsv(274, 68%, 43%) |
| CMYK | cmyk(30%, 68.2%, 0%, 56.9%) |
| CIE-LAB | lab(23.36, 34.57, -35.81) |
| CIE-LCH | lch(23.36, 49.77, 313.99°) |
| OKLab | oklab(35.43% 0.0758 -0.1013) |
| OKLCH | oklch(35.43% 0.127 306.8) |
| XYZ | xyz(6.4755, 3.9057, 15.1616) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 5.57
Indigo
#4B0082
ΔE00 6.77
Plum Purple
#4E0550
ΔE00 7.82
Indigo (survey)
#380282
ΔE00 8.30
Rebeccapurple
#663399
ΔE00 8.33
Darkish Purple
#751973
ΔE00 8.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D236E #446E23
analogous
#27236E #4D236E #6E2369
triadic
#4D236E #6E4D23 #236E4D
tetradic
#4D236E #6E2723 #446E23 #23696E
square
#4D236E #6E2723 #446E23 #23696E
split-complementary
#4D236E #696E23 #236E27
monochromatic
#100717 #2C1440 #4D236E #6D329C #8D47C4
Accessibility & contrast
On white
11.79
#4D236E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#4D236E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D236E
11.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D236E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D236E | 1.00 | 11.79 | 1.78 | 11.79 |
| #FFFFFF | 11.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#12386C
Tritanopia (blue-blind)
#483345
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #4d236e; /* rgb */ color: rgb(77, 35, 110); /* oklch */ color: oklch(35.4% 0.127 306.8);
Tailwind
colors: {
custom: {
50: '#826198',
500: '#4d236e',
950: '#000000',
},
}SCSS
$custom: #4d236e; $custom-light: #826198; $custom-dark: #000000;
JSON
{
"hex": "#4d236e",
"rgb": {
"r": 77,
"g": 35,
"b": 110
},
"hsl": {
"h": 273.6,
"s": 51.724,
"l": 28.431
},
"oklch": {
"l": 0.35433,
"c": 0.12654,
"h": 306.8
},
"luminance": 0.03906
}Semantic roles & 50–950 ramp
primary
#4D236E
secondary
#71A14C
accent
#DB4D8B
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E