#32157F#32157F
#32157F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.1% C 0.161 H 285.3°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).
Color values
| HEX | #32157F |
|---|---|
| RGB | rgb(50, 21, 127) |
| HSL | hsl(256, 72%, 29%) |
| HSV | hsv(256, 83%, 50%) |
| CMYK | cmyk(60.6%, 83.5%, 0%, 50.2%) |
| CIE-LAB | lab(19.00, 41.52, -53.95) |
| CIE-LCH | lch(19.00, 68.08, 307.58°) |
| OKLab | oklab(32.06% 0.0427 -0.1554) |
| OKLCH | oklch(32.06% 0.161 285.3) |
| XYZ | xyz(5.4132, 2.7464, 20.3194) |
| Luminance | 0.0275 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.73
Midnight Blue
#191970
ΔE00 4.34
Royal
#0C1793
ΔE00 4.48
Indigo
#4B0082
ΔE00 4.73
Darkblue
#00008B
ΔE00 5.05
Navy
#000080
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#32157F #627F15
analogous
#152D7F #32157F #67157F
triadic
#32157F #7F3215 #157F32
tetradic
#32157F #7F152D #627F15 #157F67
square
#32157F #7F152D #627F15 #157F67
split-complementary
#32157F #7F6715 #2D7F15
monochromatic
#0A041A #1D0C4A #32157F #471EB4 #6031DD
Accessibility & contrast
On white
13.55
#32157F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#32157F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #32157F
13.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##32157F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##32157F | 1.00 | 13.55 | 1.55 | 13.55 |
| #FFFFFF | 13.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#05354B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #32157f; /* rgb */ color: rgb(50, 21, 127); /* oklch */ color: oklch(32.1% 0.161 285.3);
Tailwind
colors: {
custom: {
50: '#7557a5',
500: '#32157f',
950: '#000000',
},
}SCSS
$custom: #32157f; $custom-light: #7557a5; $custom-dark: #000000;
JSON
{
"hex": "#32157f",
"rgb": {
"r": 50,
"g": 21,
"b": 127
},
"hsl": {
"h": 256.415,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.32061,
"c": 0.1612,
"h": 285.3
},
"luminance": 0.02747
}Semantic roles & 50–950 ramp
primary
#32157F
secondary
#93B43C
accent
#EE39BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F