#6045B2#6045B2
#6045B2 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.0% C 0.165 H 290.2°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).
Color values
| HEX | #6045B2 |
|---|---|
| RGB | rgb(96, 69, 178) |
| HSL | hsl(255, 44%, 48%) |
| HSV | hsv(255, 61%, 70%) |
| CMYK | cmyk(46.1%, 61.2%, 0%, 30.2%) |
| CIE-LAB | lab(37.76, 38.37, -54.31) |
| CIE-LCH | lch(37.76, 66.50, 305.24°) |
| OKLab | oklab(47.97% 0.057 -0.1552) |
| OKLCH | oklch(47.97% 0.165 290.2) |
| XYZ | xyz(14.9856, 9.9568, 43.2431) |
| Luminance | 0.0996 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Ocean Blue
#4F42B5
ΔE00 3.07
Bluey Purple
#6241C7
ΔE00 3.24
Blue With A Hint Of Purple
#533CC6
ΔE00 4.20
Blurple
#5539CC
ΔE00 4.93
Blueberry
#464196
ΔE00 6.18
Iris
#6258C4
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6045B2 #97B245
analogous
#4560B2 #6045B2 #9645B2
triadic
#6045B2 #B26045 #45B260
tetradic
#6045B2 #B24560 #97B245 #45B296
square
#6045B2 #B24560 #97B245 #45B296
split-complementary
#6045B2 #B29645 #60B245
monochromatic
#30235A #483486 #6045B2 #846EC7 #A99AD8
Accessibility & contrast
On white
7.02
#6045B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.99
#6045B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6045B2
7.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6045B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6045B2 | 1.00 | 7.02 | 2.99 | 7.02 |
| #FFFFFF | 7.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#0056B0
Tritanopia (blue-blind)
#475E75
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #6045b2; /* rgb */ color: rgb(96, 69, 178); /* oklch */ color: oklch(48.0% 0.165 290.2);
Tailwind
colors: {
custom: {
50: '#937aca',
500: '#6045b2',
950: '#000000',
},
}SCSS
$custom: #6045b2; $custom-light: #937aca; $custom-dark: #000000;
JSON
{
"hex": "#6045b2",
"rgb": {
"r": 96,
"g": 69,
"b": 178
},
"hsl": {
"h": 254.862,
"s": 44.13,
"l": 48.431
},
"oklch": {
"l": 0.47972,
"c": 0.16529,
"h": 290.2
},
"luminance": 0.09957
}Semantic roles & 50–950 ramp
primary
#6045B2
secondary
#B7C48F
accent
#D454B4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82