#6038B2#6038B2
#6038B2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.182 H 292.9°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).
Color values
| HEX | #6038B2 |
|---|---|
| RGB | rgb(96, 56, 178) |
| HSL | hsl(260, 52%, 46%) |
| HSV | hsv(260, 69%, 70%) |
| CMYK | cmyk(46.1%, 68.5%, 0%, 30.2%) |
| CIE-LAB | lab(35.06, 45.66, -58.70) |
| CIE-LCH | lch(35.06, 74.37, 307.88°) |
| OKLab | oklab(46.02% 0.0709 -0.1681) |
| OKLCH | oklch(46.02% 0.182 292.9) |
| XYZ | xyz(14.2717, 8.5290, 43.0052) |
| Luminance | 0.0853 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Blue With A Hint Of Purple
#533CC6
ΔE00 3.81
Bluey Purple
#6241C7
ΔE00 3.82
Blurple
#5539CC
ΔE00 4.11
Ocean Blue
#4F42B5
ΔE00 4.17
Rebeccapurple
#663399
ΔE00 4.64
Purple Blue
#5D21D0
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6038B2 #8AB238
analogous
#384DB2 #6038B2 #9D38B2
triadic
#6038B2 #B26038 #38B260
tetradic
#6038B2 #B2384D #8AB238 #38B29D
square
#6038B2 #B2384D #8AB238 #38B29D
split-complementary
#6038B2 #B29D38 #4DB238
monochromatic
#2E1B55 #472983 #6038B2 #805CCC #A48ADA
Accessibility & contrast
On white
7.76
#6038B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.71
#6038B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #6038B2
7.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6038B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6038B2 | 1.00 | 7.76 | 2.71 | 7.76 |
| #FFFFFF | 7.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#485670
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #6038b2; /* rgb */ color: rgb(96, 56, 178); /* oklch */ color: oklch(46.0% 0.182 292.9);
Tailwind
colors: {
custom: {
50: '#9471ca',
500: '#6038b2',
950: '#000000',
},
}SCSS
$custom: #6038b2; $custom-light: #9471ca; $custom-dark: #000000;
JSON
{
"hex": "#6038b2",
"rgb": {
"r": 96,
"g": 56,
"b": 178
},
"hsl": {
"h": 259.672,
"s": 52.137,
"l": 45.882
},
"oklch": {
"l": 0.46016,
"c": 0.18239,
"h": 292.9
},
"luminance": 0.08529
}Semantic roles & 50–950 ramp
primary
#6038B2
secondary
#AEC581
accent
#DC4CAD
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82