#38156F#38156F
#38156F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.142 H 294.1°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).
Color values
| HEX | #38156F |
|---|---|
| RGB | rgb(56, 21, 111) |
| HSL | hsl(263, 68%, 26%) |
| HSV | hsv(263, 81%, 44%) |
| CMYK | cmyk(49.5%, 81.1%, 0%, 56.5%) |
| CIE-LAB | lab(18.03, 37.72, -45.24) |
| CIE-LCH | lch(18.03, 58.90, 309.82°) |
| OKLab | oklab(31.05% 0.058 -0.1298) |
| OKLCH | oklch(31.05% 0.142 294.1) |
| XYZ | xyz(4.7675, 2.5246, 15.2720) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.17
Royal Purple (survey)
#4B006E
ΔE00 4.69
Indigo
#4B0082
ΔE00 4.80
Midnight Blue
#191970
ΔE00 5.08
Dark Indigo
#1F0954
ΔE00 5.68
Dark Royal Blue
#02066F
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#38156F #4C6F15
analogous
#151F6F #38156F #65156F
triadic
#38156F #6F3815 #156F38
tetradic
#38156F #6F151F #4C6F15 #156F65
square
#38156F #6F151F #4C6F15 #156F65
split-complementary
#38156F #6F6515 #1F6F15
monochromatic
#0D051A #1E0B3C #38156F #521FA2 #6C28D6
Accessibility & contrast
On white
13.95
#38156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#38156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #38156F
13.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##38156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##38156F | 1.00 | 13.95 | 1.51 | 13.95 |
| #FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#272E42
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #38156f; /* rgb */ color: rgb(56, 21, 111); /* oklch */ color: oklch(31.0% 0.142 294.1);
Tailwind
colors: {
custom: {
50: '#755799',
500: '#38156f',
950: '#000000',
},
}SCSS
$custom: #38156f; $custom-light: #755799; $custom-dark: #000000;
JSON
{
"hex": "#38156f",
"rgb": {
"r": 56,
"g": 21,
"b": 111
},
"hsl": {
"h": 263.333,
"s": 68.182,
"l": 25.882
},
"oklch": {
"l": 0.31047,
"c": 0.14216,
"h": 294.1
},
"luminance": 0.02525
}Semantic roles & 50–950 ramp
primary
#38156F
secondary
#7CA53A
accent
#EB3DA7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E