#6031B2#6031B2
#6031B2 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.1% C 0.191 H 294.0°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).
Color values
| HEX | #6031B2 |
|---|---|
| RGB | rgb(96, 49, 178) |
| HSL | hsl(262, 57%, 45%) |
| HSV | hsv(262, 72%, 70%) |
| CMYK | cmyk(46.1%, 72.5%, 0%, 30.2%) |
| CIE-LAB | lab(33.77, 49.26, -60.81) |
| CIE-LCH | lch(33.77, 78.26, 309.01°) |
| OKLab | oklab(45.1% 0.0776 -0.1742) |
| OKLCH | oklch(45.1% 0.191 294) |
| XYZ | xyz(13.9559, 7.8974, 42.8999) |
| Luminance | 0.0790 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 4.46
Rebeccapurple
#663399
ΔE00 4.46
Blue With A Hint Of Purple
#533CC6
ΔE00 4.51
Blurple
#5539CC
ΔE00 4.55
Bluey Purple
#6241C7
ΔE00 4.89
Ocean Blue
#4F42B5
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6031B2 #83B231
analogous
#3143B2 #6031B2 #A031B2
triadic
#6031B2 #B26031 #31B260
tetradic
#6031B2 #B23143 #83B231 #31B2A0
square
#6031B2 #B23143 #83B231 #31B2A0
split-complementary
#6031B2 #B2A031 #43B231
monochromatic
#2C1752 #462482 #6031B2 #7F51CF #A281DC
Accessibility & contrast
On white
8.14
#6031B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#6031B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6031B2
8.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6031B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6031B2 | 1.00 | 8.14 | 2.58 | 8.14 |
| #FFFFFF | 8.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#004DAF
Tritanopia (blue-blind)
#48526E
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #6031b2; /* rgb */ color: rgb(96, 49, 178); /* oklch */ color: oklch(45.1% 0.191 294.0);
Tailwind
colors: {
custom: {
50: '#956dca',
500: '#6031b2',
950: '#000000',
},
}SCSS
$custom: #6031b2; $custom-light: #956dca; $custom-dark: #000000;
JSON
{
"hex": "#6031b2",
"rgb": {
"r": 96,
"g": 49,
"b": 178
},
"hsl": {
"h": 261.86,
"s": 56.828,
"l": 44.51
},
"oklch": {
"l": 0.45095,
"c": 0.19073,
"h": 294
},
"luminance": 0.07898
}Semantic roles & 50–950 ramp
primary
#6031B2
secondary
#AAC579
accent
#E048A9
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82