#6A42BC#6A42BC
#6A42BC is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.3% C 0.182 H 293.7°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).
Color values
| HEX | #6A42BC |
|---|---|
| RGB | rgb(106, 66, 188) |
| HSL | hsl(260, 48%, 50%) |
| HSV | hsv(260, 65%, 74%) |
| CMYK | cmyk(43.6%, 64.9%, 0%, 26.3%) |
| CIE-LAB | lab(38.88, 44.96, -58.34) |
| CIE-LCH | lch(38.88, 73.66, 307.62°) |
| OKLab | oklab(49.26% 0.0732 -0.1667) |
| OKLCH | oklch(49.26% 0.182 293.7) |
| XYZ | xyz(16.9667, 10.5910, 48.7175) |
| Luminance | 0.1059 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 2.22
Blue With A Hint Of Purple
#533CC6
ΔE00 4.25
Blurple
#5539CC
ΔE00 4.49
Ocean Blue
#4F42B5
ΔE00 4.73
Burple
#6832E3
ΔE00 5.70
Bluish Purple
#703BE7
ΔE00 5.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6A42BC #94BC42
analogous
#4257BC #6A42BC #A742BC
triadic
#6A42BC #BC6A42 #42BC6A
tetradic
#6A42BC #BC4257 #94BC42 #42BCA7
square
#6A42BC #BC4257 #94BC42 #42BCA7
split-complementary
#6A42BC #BCA742 #57BC42
monochromatic
#372261 #50328F #6A42BC #8D6FCC #B19CDC
Accessibility & contrast
On white
6.73
#6A42BC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#6A42BC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6A42BC
6.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6A42BC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6A42BC | 1.00 | 6.73 | 3.12 | 6.73 |
| #FFFFFF | 6.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DC0
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#535F79
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #6a42bc; /* rgb */ color: rgb(106, 66, 188); /* oklch */ color: oklch(49.3% 0.182 293.7);
Tailwind
colors: {
custom: {
50: '#9b79d1',
500: '#6a42bc',
950: '#000000',
},
}SCSS
$custom: #6a42bc; $custom-light: #9b79d1; $custom-dark: #000000;
JSON
{
"hex": "#6a42bc",
"rgb": {
"r": 106,
"g": 66,
"b": 188
},
"hsl": {
"h": 259.672,
"s": 48.031,
"l": 49.804
},
"oklch": {
"l": 0.49255,
"c": 0.18205,
"h": 293.7
},
"luminance": 0.10591
}Semantic roles & 50–950 ramp
primary
#6A42BC
secondary
#B6C991
accent
#D850AB
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0914
muted
#7F7B82