#6842E2#6842E2
#6842E2 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.2% C 0.227 H 286.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).
Color values
| HEX | #6842E2 |
|---|---|
| RGB | rgb(104, 66, 226) |
| HSL | hsl(254, 73%, 57%) |
| HSV | hsv(254, 71%, 89%) |
| CMYK | cmyk(54%, 70.8%, 0%, 11.4%) |
| CIE-LAB | lab(41.73, 55.23, -75.65) |
| CIE-LCH | lch(41.73, 93.67, 306.13°) |
| OKLab | oklab(52.2% 0.0644 -0.2176) |
| OKLCH | oklch(52.2% 0.227 286.5) |
| XYZ | xyz(21.3805, 12.3293, 73.1900) |
| Luminance | 0.1233 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.73
Bluish Purple
#703BE7
ΔE00 1.75
Purpley Blue
#5F34E7
ΔE00 3.03
Burple
#6832E3
ΔE00 3.08
Bluey Purple
#6241C7
ΔE00 3.77
Blurple
#5539CC
ΔE00 4.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6842E2 #BCE242
analogous
#426CE2 #6842E2 #B842E2
triadic
#6842E2 #E26842 #42E268
tetradic
#6842E2 #E2426C #BCE242 #42E2B8
square
#6842E2 #E2426C #BCE242 #42E2B8
split-complementary
#6842E2 #E2B842 #6CE242
monochromatic
#341793 #471FC8 #6842E2 #9277EA #BDACF2
Accessibility & contrast
On white
6.06
#6842E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.47
#6842E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6842E2
6.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6842E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6842E2 | 1.00 | 6.06 | 3.47 | 6.06 |
| #FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066E7
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#336D8E
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #6842e2; /* rgb */ color: rgb(104, 66, 226); /* oklch */ color: oklch(52.2% 0.227 286.5);
Tailwind
colors: {
custom: {
50: '#9f7aec',
500: '#6842e2',
950: '#000000',
},
}SCSS
$custom: #6842e2; $custom-light: #9f7aec; $custom-dark: #000000;
JSON
{
"hex": "#6842e2",
"rgb": {
"r": 104,
"g": 66,
"b": 226
},
"hsl": {
"h": 254.25,
"s": 73.394,
"l": 57.255
},
"oklch": {
"l": 0.52198,
"c": 0.22692,
"h": 286.5
},
"luminance": 0.1233
}Semantic roles & 50–950 ramp
primary
#6842E2
secondary
#D1E09F
accent
#F038C4
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84