#5946C2#5946C2
#5946C2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.8% C 0.185 H 284.2°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).
Color values
| HEX | #5946C2 |
|---|---|
| RGB | rgb(89, 70, 194) |
| HSL | hsl(249, 50%, 52%) |
| HSV | hsv(249, 64%, 76%) |
| CMYK | cmyk(54.1%, 63.9%, 0%, 23.9%) |
| CIE-LAB | lab(38.55, 41.21, -62.47) |
| CIE-LCH | lch(38.55, 74.84, 303.41°) |
| OKLab | oklab(48.77% 0.0453 -0.1794) |
| OKLCH | oklch(48.77% 0.185 284.2) |
| XYZ | xyz(16.0446, 10.3983, 52.1901) |
| Luminance | 0.1040 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Bluey Purple
#6241C7
ΔE00 2.11
Ocean Blue
#4F42B5
ΔE00 2.59
Blue With A Hint Of Purple
#533CC6
ΔE00 2.66
Blurple
#5539CC
ΔE00 3.39
Iris
#6258C4
ΔE00 5.30
Purpley Blue
#5F34E7
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5946C2 #AFC246
analogous
#4671C2 #5946C2 #9746C2
triadic
#5946C2 #C25946 #46C259
tetradic
#5946C2 #C24671 #AFC246 #46C297
square
#5946C2 #C24671 #AFC246 #46C297
split-complementary
#5946C2 #C29746 #71C246
monochromatic
#2E236A #423299 #5946C2 #8274D1 #ACA2E0
Accessibility & contrast
On white
6.82
#5946C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.08
#5946C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #5946C2
6.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5946C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5946C2 | 1.00 | 6.82 | 3.08 | 6.82 |
| #FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0057C0
Tritanopia (blue-blind)
#2B657D
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #5946c2; /* rgb */ color: rgb(89, 70, 194); /* oklch */ color: oklch(48.8% 0.185 284.2);
Tailwind
colors: {
custom: {
50: '#917ad5',
500: '#5946c2',
950: '#000000',
},
}SCSS
$custom: #5946c2; $custom-light: #917ad5; $custom-dark: #000000;
JSON
{
"hex": "#5946c2",
"rgb": {
"r": 89,
"g": 70,
"b": 194
},
"hsl": {
"h": 249.194,
"s": 50.407,
"l": 51.765
},
"oklch": {
"l": 0.48766,
"c": 0.18501,
"h": 284.2
},
"luminance": 0.10399
}Semantic roles & 50–950 ramp
primary
#5946C2
secondary
#C5CD97
accent
#DA4EC4
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83