#6A42E2#6A42E2
#6A42E2 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.227 H 287.2°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).
Color values
| HEX | #6A42E2 |
|---|---|
| RGB | rgb(106, 66, 226) |
| HSL | hsl(255, 73%, 57%) |
| HSV | hsv(255, 71%, 89%) |
| CMYK | cmyk(53.1%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(41.92, 55.53, -75.34) |
| CIE-LCH | lch(41.92, 93.59, 306.39°) |
| OKLab | oklab(52.38% 0.0672 -0.2166) |
| OKLCH | oklch(52.38% 0.227 287.2) |
| XYZ | xyz(21.6155, 12.4505, 73.2010) |
| Luminance | 0.1245 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluish Purple
#703BE7
ΔE00 1.58
Purpleish Blue
#6140EF
ΔE00 1.87
Burple
#6832E3
ΔE00 3.12
Purpley Blue
#5F34E7
ΔE00 3.17
Bluey Purple
#6241C7
ΔE00 3.87
Blurple
#5539CC
ΔE00 4.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6A42E2 #BAE242
analogous
#426AE2 #6A42E2 #BA42E2
triadic
#6A42E2 #E26A42 #42E26A
tetradic
#6A42E2 #E2426A #BAE242 #42E2BA
square
#6A42E2 #E2426A #BAE242 #42E2BA
split-complementary
#6A42E2 #E2BA42 #6AE242
monochromatic
#361793 #491FC8 #6A42E2 #9477EA #BEACF2
Accessibility & contrast
On white
6.02
#6A42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.49
#6A42E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6A42E2
6.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6A42E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6A42E2 | 1.00 | 6.02 | 3.49 | 6.02 |
| #FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067E7
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#396D8E
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #6a42e2; /* rgb */ color: rgb(106, 66, 226); /* oklch */ color: oklch(52.4% 0.227 287.2);
Tailwind
colors: {
custom: {
50: '#a07aec',
500: '#6a42e2',
950: '#000000',
},
}SCSS
$custom: #6a42e2; $custom-light: #a07aec; $custom-dark: #000000;
JSON
{
"hex": "#6a42e2",
"rgb": {
"r": 106,
"g": 66,
"b": 226
},
"hsl": {
"h": 255,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.52377,
"c": 0.22678,
"h": 287.2
},
"luminance": 0.12452
}Semantic roles & 50–950 ramp
primary
#6A42E2
secondary
#D0E09F
accent
#F038C2
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84