#5939F2#5939F2
#5939F2 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.3% C 0.255 H 280.4°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).
Color values
| HEX | #5939F2 |
|---|---|
| RGB | rgb(89, 57, 242) |
| HSL | hsl(250, 88%, 59%) |
| HSV | hsv(250, 76%, 95%) |
| CMYK | cmyk(63.2%, 76.4%, 0%, 5.1%) |
| CIE-LAB | lab(40.34, 62.29, -87.05) |
| CIE-LCH | lch(40.34, 107.04, 305.58°) |
| OKLab | oklab(51.34% 0.046 -0.2513) |
| OKLCH | oklch(51.34% 0.255 280.4) |
| XYZ | xyz(21.6049, 11.4592, 85.0605) |
| Luminance | 0.1146 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.68
Purpley Blue
#5F34E7
ΔE00 1.84
Burple
#6832E3
ΔE00 2.83
Bluish Purple
#703BE7
ΔE00 3.06
Light Royal Blue
#3A2EFE
ΔE00 3.17
Purplish Blue
#601EF9
ΔE00 3.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5939F2 #D2F239
analogous
#3975F2 #5939F2 #B539F2
triadic
#5939F2 #F25939 #39F259
tetradic
#5939F2 #F23975 #D2F239 #39F2B5
square
#5939F2 #F23975 #D2F239 #39F2B5
split-complementary
#5939F2 #F2B539 #75F239
monochromatic
#260BA6 #330FDF #5939F2 #8972F6 #B9ACFA
Accessibility & contrast
On white
6.38
#5939F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.29
#5939F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5939F2
6.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5939F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5939F2 | 1.00 | 6.38 | 3.29 | 6.38 |
| #FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066F7
Deuteranopia (green-blind)
#0058EF
Tritanopia (blue-blind)
#007095
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #5939f2; /* rgb */ color: rgb(89, 57, 242); /* oklch */ color: oklch(51.3% 0.255 280.4);
Tailwind
colors: {
custom: {
50: '#9a74f8',
500: '#5939f2',
950: '#000000',
},
}SCSS
$custom: #5939f2; $custom-light: #9a74f8; $custom-dark: #000000;
JSON
{
"hex": "#5939f2",
"rgb": {
"r": 89,
"g": 57,
"b": 242
},
"hsl": {
"h": 250.378,
"s": 87.678,
"l": 58.627
},
"oklch": {
"l": 0.51341,
"c": 0.25545,
"h": 280.4
},
"luminance": 0.11461
}Semantic roles & 50–950 ramp
primary
#5939F2
secondary
#DBE89F
accent
#FE2AD9
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85