#5F23A7#5F23A7
#5F23A7 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.4% C 0.193 H 298.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).
Color values
| HEX | #5F23A7 |
|---|---|
| RGB | rgb(95, 35, 167) |
| HSL | hsl(267, 65%, 40%) |
| HSV | hsv(267, 79%, 65%) |
| CMYK | cmyk(43.1%, 79%, 0%, 34.5%) |
| CIE-LAB | lab(30.46, 52.60, -59.64) |
| CIE-LCH | lch(30.46, 79.53, 311.41°) |
| OKLab | oklab(42.45% 0.091 -0.1707) |
| OKLCH | oklch(42.45% 0.193 298.1) |
| XYZ | xyz(12.2936, 6.4248, 37.1441) |
| Luminance | 0.0643 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 4.31
Violet Blue
#510AC9
ΔE00 5.37
Purple Blue
#5D21D0
ΔE00 5.56
Indigo Blue
#3A18B1
ΔE00 5.75
Purple (survey)
#7E1E9C
ΔE00 6.48
Blurple
#5539CC
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F23A7 #6BA723
analogous
#2329A7 #5F23A7 #A123A7
triadic
#5F23A7 #A75F23 #23A75F
tetradic
#5F23A7 #A72329 #6BA723 #23A7A1
square
#5F23A7 #A72329 #6BA723 #23A7A1
split-complementary
#5F23A7 #A7A123 #29A723
monochromatic
#250E42 #421874 #5F23A7 #7C33D4 #9D66DF
Accessibility & contrast
On white
9.19
#5F23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.29
#5F23A7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F23A7
9.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F23A7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F23A7 | 1.00 | 9.19 | 2.29 | 9.19 |
| #FFFFFF | 9.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#4D4765
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #5f23a7; /* rgb */ color: rgb(95, 35, 167); /* oklch */ color: oklch(42.4% 0.193 298.1);
Tailwind
colors: {
custom: {
50: '#9465c2',
500: '#5f23a7',
950: '#000000',
},
}SCSS
$custom: #5f23a7; $custom-light: #9465c2; $custom-dark: #000000;
JSON
{
"hex": "#5f23a7",
"rgb": {
"r": 95,
"g": 35,
"b": 167
},
"hsl": {
"h": 267.273,
"s": 65.347,
"l": 39.608
},
"oklch": {
"l": 0.42449,
"c": 0.19346,
"h": 298.1
},
"luminance": 0.06425
}Semantic roles & 50–950 ramp
primary
#5F23A7
secondary
#97C461
accent
#E83F9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82