#6042BC#6042BC
#6042BC is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.3% C 0.182 H 289.0°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).
Color values
| HEX | #6042BC |
|---|---|
| RGB | rgb(96, 66, 188) |
| HSL | hsl(255, 48%, 50%) |
| HSV | hsv(255, 65%, 74%) |
| CMYK | cmyk(48.9%, 64.9%, 0%, 26.3%) |
| CIE-LAB | lab(37.87, 43.01, -60.04) |
| CIE-LCH | lch(37.87, 73.86, 305.61°) |
| OKLab | oklab(48.28% 0.0594 -0.172) |
| OKLCH | oklch(48.28% 0.182 289) |
| XYZ | xyz(15.8466, 10.0134, 48.6650) |
| Luminance | 0.1001 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.59
Blue With A Hint Of Purple
#533CC6
ΔE00 2.80
Ocean Blue
#4F42B5
ΔE00 3.00
Blurple
#5539CC
ΔE00 3.36
Burple
#6832E3
ΔE00 5.77
Purpley Blue
#5F34E7
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6042BC #9EBC42
analogous
#4261BC #6042BC #9D42BC
triadic
#6042BC #BC6042 #42BC60
tetradic
#6042BC #BC4261 #9EBC42 #42BC9D
square
#6042BC #BC4261 #9EBC42 #42BC9D
split-complementary
#6042BC #BC9D42 #61BC42
monochromatic
#322261 #49328F #6042BC #866FCC #AC9CDC
Accessibility & contrast
On white
6.99
#6042BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.00
#6042BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6042BC
6.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6042BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6042BC | 1.00 | 6.99 | 3.00 | 6.99 |
| #FFFFFF | 6.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#416079
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #6042bc; /* rgb */ color: rgb(96, 66, 188); /* oklch */ color: oklch(48.3% 0.182 289.0);
Tailwind
colors: {
custom: {
50: '#9578d1',
500: '#6042bc',
950: '#000000',
},
}SCSS
$custom: #6042bc; $custom-light: #9578d1; $custom-dark: #000000;
JSON
{
"hex": "#6042bc",
"rgb": {
"r": 96,
"g": 66,
"b": 188
},
"hsl": {
"h": 254.754,
"s": 48.031,
"l": 49.804
},
"oklch": {
"l": 0.48281,
"c": 0.18197,
"h": 289
},
"luminance": 0.10014
}Semantic roles & 50–950 ramp
primary
#6042BC
secondary
#BBC991
accent
#D850B6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82