#5336C2#5336C2
#5336C2 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 45.9% C 0.204 H 284.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).
Color values
| HEX | #5336C2 |
|---|---|
| RGB | rgb(83, 54, 194) |
| HSL | hsl(252, 56%, 49%) |
| HSV | hsv(252, 72%, 76%) |
| CMYK | cmyk(57.2%, 72.2%, 0%, 23.9%) |
| CIE-LAB | lab(34.74, 49.18, -68.71) |
| CIE-LCH | lch(34.74, 84.50, 305.59°) |
| OKLab | oklab(45.9% 0.051 -0.1978) |
| OKLCH | oklch(45.9% 0.204 284.5) |
| XYZ | xyz(14.6211, 8.3715, 51.8739) |
| Luminance | 0.0837 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 1.55
Blurple
#5539CC
ΔE00 1.60
Bluey Purple
#6241C7
ΔE00 3.49
Ocean Blue
#4F42B5
ΔE00 3.61
Purple Blue
#5D21D0
ΔE00 3.94
Purpley Blue
#5F34E7
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5336C2 #A5C236
analogous
#365FC2 #5336C2 #9936C2
triadic
#5336C2 #C25336 #36C253
tetradic
#5336C2 #C2365F #A5C236 #36C299
square
#5336C2 #C2365F #A5C236 #36C299
split-complementary
#5336C2 #C29936 #5FC236
monochromatic
#2A1B62 #3F2992 #5336C2 #7962D3 #A292E1
Accessibility & contrast
On white
7.85
#5336C2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.67
#5336C2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5336C2
7.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5336C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5336C2 | 1.00 | 7.85 | 2.67 | 7.85 |
| #FFFFFF | 7.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#185C79
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #5336c2; /* rgb */ color: rgb(83, 54, 194); /* oklch */ color: oklch(45.9% 0.204 284.5);
Tailwind
colors: {
custom: {
50: '#8f70d6',
500: '#5336c2',
950: '#000000',
},
}SCSS
$custom: #5336c2; $custom-light: #8f70d6; $custom-dark: #000000;
JSON
{
"hex": "#5336c2",
"rgb": {
"r": 83,
"g": 54,
"b": 194
},
"hsl": {
"h": 252.429,
"s": 56.452,
"l": 48.627
},
"oklch": {
"l": 0.45903,
"c": 0.20432,
"h": 284.5
},
"luminance": 0.08372
}Semantic roles & 50–950 ramp
primary
#5336C2
secondary
#BECC88
accent
#E048C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83