#56338C#56338C
#56338C is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.2% C 0.142 H 298.0°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).
Color values
| HEX | #56338C |
|---|---|
| RGB | rgb(86, 51, 140) |
| HSL | hsl(264, 47%, 37%) |
| HSV | hsv(264, 64%, 55%) |
| CMYK | cmyk(38.6%, 63.6%, 0%, 45.1%) |
| CIE-LAB | lab(30.01, 35.78, -43.95) |
| CIE-LCH | lch(30.01, 56.67, 309.15°) |
| OKLab | oklab(41.2% 0.0665 -0.125) |
| OKLCH | oklch(41.2% 0.142 298) |
| XYZ | xyz(9.7540, 6.2394, 25.4963) |
| Luminance | 0.0624 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.43
Darkslateblue
#483D8B
ΔE00 4.72
Blueberry
#464196
ΔE00 6.23
Ocean Blue
#4F42B5
ΔE00 8.02
Purple (survey)
#7E1E9C
ΔE00 8.35
Indigo
#4B0082
ΔE00 8.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#56338C #698C33
analogous
#333C8C #56338C #83338C
triadic
#56338C #8C5633 #338C56
tetradic
#56338C #8C333C #698C33 #338C83
square
#56338C #8C333C #698C33 #338C83
split-complementary
#56338C #8C8333 #3C8C33
monochromatic
#1F1232 #3A235F #56338C #7243B9 #936FCB
Accessibility & contrast
On white
9.34
#56338C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#56338C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #56338C
9.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##56338C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##56338C | 1.00 | 9.34 | 2.25 | 9.34 |
| #FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#0A468A
Tritanopia (blue-blind)
#49475A
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #56338c; /* rgb */ color: rgb(86, 51, 140); /* oklch */ color: oklch(41.2% 0.142 298.0);
Tailwind
colors: {
custom: {
50: '#8a6cae',
500: '#56338c',
950: '#000000',
},
}SCSS
$custom: #56338c; $custom-light: #8a6cae; $custom-dark: #000000;
JSON
{
"hex": "#56338c",
"rgb": {
"r": 86,
"g": 51,
"b": 140
},
"hsl": {
"h": 263.596,
"s": 46.597,
"l": 37.451
},
"oklch": {
"l": 0.41198,
"c": 0.14159,
"h": 298
},
"luminance": 0.0624
}Semantic roles & 50–950 ramp
primary
#56338C
secondary
#95B268
accent
#D652A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F