#5F2DCD#5F2DCD
#5F2DCD is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.225 H 288.8°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).
Color values
| HEX | #5F2DCD |
|---|---|
| RGB | rgb(95, 45, 205) |
| HSL | hsl(259, 64%, 49%) |
| HSV | hsv(259, 78%, 80%) |
| CMYK | cmyk(53.7%, 78%, 0%, 19.6%) |
| CIE-LAB | lab(35.43, 58.21, -73.96) |
| CIE-LCH | lch(35.43, 94.12, 308.20°) |
| OKLab | oklab(46.98% 0.0722 -0.2128) |
| OKLCH | oklch(46.98% 0.225 288.8) |
| XYZ | xyz(16.6739, 8.7166, 58.5497) |
| Luminance | 0.0872 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 1.81
Blurple
#5539CC
ΔE00 2.70
Blue With A Hint Of Purple
#533CC6
ΔE00 3.52
Burple
#6832E3
ΔE00 3.52
Purpley Blue
#5F34E7
ΔE00 3.82
Purply Blue
#661AEE
ΔE00 4.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F2DCD #9BCD2D
analogous
#2D4BCD #5F2DCD #AF2DCD
triadic
#5F2DCD #CD5F2D #2DCD5F
tetradic
#5F2DCD #CD2D4B #9BCD2D #2DCDAF
square
#5F2DCD #CD2D4B #9BCD2D #2DCDAF
split-complementary
#5F2DCD #CDAF2D #4BCD2D
monochromatic
#301769 #48229B #5F2DCD #845CDB #AA8EE6
Accessibility & contrast
On white
7.65
#5F2DCD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.74
#5F2DCD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F2DCD
7.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F2DCD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F2DCD | 1.00 | 7.65 | 2.74 | 7.65 |
| #FFFFFF | 7.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057D1
Deuteranopia (green-blind)
#004FCA
Tritanopia (blue-blind)
#335B7D
Achromatopsia (no color)
#535353
Design tokens & code
CSS
--color: #5f2dcd; /* rgb */ color: rgb(95, 45, 205); /* oklch */ color: oklch(47.0% 0.225 288.8);
Tailwind
colors: {
custom: {
50: '#986cde',
500: '#5f2dcd',
950: '#000000',
},
}SCSS
$custom: #5f2dcd; $custom-light: #986cde; $custom-dark: #000000;
JSON
{
"hex": "#5f2dcd",
"rgb": {
"r": 95,
"g": 45,
"b": 205
},
"hsl": {
"h": 258.75,
"s": 64,
"l": 49.02
},
"oklch": {
"l": 0.46979,
"c": 0.22469,
"h": 288.8
},
"luminance": 0.08717
}Semantic roles & 50–950 ramp
primary
#5F2DCD
secondary
#B9D185
accent
#E741B3
background
#FAF6FD
surface
#F3ECFB
border
#CDC7D4
text
#0F0715
muted
#7F7A83