#5F46AF#5F46AF
#5F46AF is a mid, vivid violet. Relative luminance 0.099; OKLCH L 47.8% C 0.160 H 290.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).
Color values
| HEX | #5F46AF |
|---|---|
| RGB | rgb(95, 70, 175) |
| HSL | hsl(254, 43%, 48%) |
| HSV | hsv(254, 60%, 69%) |
| CMYK | cmyk(45.7%, 60%, 0%, 31.4%) |
| CIE-LAB | lab(37.68, 36.69, -52.68) |
| CIE-LCH | lch(37.68, 64.20, 304.85°) |
| OKLab | oklab(47.82% 0.0546 -0.1504) |
| OKLCH | oklch(47.82% 0.16 290) |
| XYZ | xyz(14.6452, 9.9078, 41.6899) |
| Luminance | 0.0991 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 3.14
Bluey Purple
#6241C7
ΔE00 3.79
Blue With A Hint Of Purple
#533CC6
ΔE00 4.63
Blurple
#5539CC
ΔE00 5.41
Blueberry
#464196
ΔE00 5.77
Iris
#6258C4
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5F46AF #96AF46
analogous
#4661AF #5F46AF #9346AF
triadic
#5F46AF #AF5F46 #46AF5F
tetradic
#5F46AF #AF4661 #96AF46 #46AF93
square
#5F46AF #AF4661 #96AF46 #46AF93
split-complementary
#5F46AF #AF9346 #61AF46
monochromatic
#302358 #473583 #5F46AF #826DC5 #A899D6
Accessibility & contrast
On white
7.04
#5F46AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#5F46AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5F46AF
7.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5F46AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5F46AF | 1.00 | 7.04 | 2.98 | 7.04 |
| #FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#0056AD
Tritanopia (blue-blind)
#475E74
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #5f46af; /* rgb */ color: rgb(95, 70, 175); /* oklch */ color: oklch(47.8% 0.160 290.0);
Tailwind
colors: {
custom: {
50: '#927ac8',
500: '#5f46af',
950: '#000000',
},
}SCSS
$custom: #5f46af; $custom-light: #927ac8; $custom-dark: #000000;
JSON
{
"hex": "#5f46af",
"rgb": {
"r": 95,
"g": 70,
"b": 175
},
"hsl": {
"h": 254.286,
"s": 42.857,
"l": 48.039
},
"oklch": {
"l": 0.47816,
"c": 0.16001,
"h": 290
},
"luminance": 0.09908
}Semantic roles & 50–950 ramp
primary
#5F46AF
secondary
#B6C28E
accent
#D355B5
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0913
muted
#7E7B82