#5946AF#5946AF
#5946AF is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.3% C 0.160 H 286.9°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).
Color values
| HEX | #5946AF |
|---|---|
| RGB | rgb(89, 70, 175) |
| HSL | hsl(251, 43%, 48%) |
| HSV | hsv(251, 60%, 69%) |
| CMYK | cmyk(49.1%, 60%, 0%, 31.4%) |
| CIE-LAB | lab(37.11, 35.41, -53.62) |
| CIE-LCH | lch(37.11, 64.26, 303.44°) |
| OKLab | oklab(47.27% 0.0466 -0.1534) |
| OKLCH | oklch(47.27% 0.16 286.9) |
| XYZ | xyz(14.0456, 9.5987, 41.6618) |
| Luminance | 0.0960 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 2.20
Bluey Purple
#6241C7
ΔE00 4.03
Blue With A Hint Of Purple
#533CC6
ΔE00 4.30
Blueberry
#464196
ΔE00 5.01
Blurple
#5539CC
ΔE00 5.21
Iris
#6258C4
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5946AF #9CAF46
analogous
#4667AF #5946AF #8D46AF
triadic
#5946AF #AF5946 #46AF59
tetradic
#5946AF #AF4667 #9CAF46 #46AF8D
square
#5946AF #AF4667 #9CAF46 #46AF8D
split-complementary
#5946AF #AF8D46 #67AF46
monochromatic
#2D2358 #433583 #5946AF #7D6DC5 #A499D6
Accessibility & contrast
On white
7.19
#5946AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.92
#5946AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5946AF
7.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5946AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5946AF | 1.00 | 7.19 | 2.92 | 7.19 |
| #FFFFFF | 7.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#3B5E74
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #5946af; /* rgb */ color: rgb(89, 70, 175); /* oklch */ color: oklch(47.3% 0.160 286.9);
Tailwind
colors: {
custom: {
50: '#8f7ac8',
500: '#5946af',
950: '#000000',
},
}SCSS
$custom: #5946af; $custom-light: #8f7ac8; $custom-dark: #000000;
JSON
{
"hex": "#5946af",
"rgb": {
"r": 89,
"g": 70,
"b": 175
},
"hsl": {
"h": 250.857,
"s": 42.857,
"l": 48.039
},
"oklch": {
"l": 0.47266,
"c": 0.16027,
"h": 286.9
},
"luminance": 0.09599
}Semantic roles & 50–950 ramp
primary
#5946AF
secondary
#B9C28E
accent
#D355BC
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82