#6842E3#6842E3
#6842E3 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.3% C 0.228 H 286.3°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).
Color values
| HEX | #6842E3 |
|---|---|
| RGB | rgb(104, 66, 227) |
| HSL | hsl(254, 74%, 57%) |
| HSV | hsv(254, 71%, 89%) |
| CMYK | cmyk(54.2%, 70.9%, 0%, 11%) |
| CIE-LAB | lab(41.82, 55.51, -76.08) |
| CIE-LCH | lch(41.82, 94.18, 306.11°) |
| OKLab | oklab(52.29% 0.0642 -0.2188) |
| OKLCH | oklch(52.29% 0.228 286.3) |
| XYZ | xyz(21.5181, 12.3844, 73.9147) |
| Luminance | 0.1239 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpleish Blue
#6140EF
ΔE00 1.62
Bluish Purple
#703BE7
ΔE00 1.72
Purpley Blue
#5F34E7
ΔE00 3.04
Burple
#6832E3
ΔE00 3.11
Bluey Purple
#6241C7
ΔE00 3.90
Blurple
#5539CC
ΔE00 4.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6842E3 #BDE342
analogous
#426DE3 #6842E3 #B842E3
triadic
#6842E3 #E36842 #42E368
tetradic
#6842E3 #E3426D #BDE342 #42E3B8
square
#6842E3 #E3426D #BDE342 #42E3B8
split-complementary
#6842E3 #E3B842 #6DE342
monochromatic
#341695 #461ECA #6842E3 #9377EB #BDADF3
Accessibility & contrast
On white
6.04
#6842E3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.48
#6842E3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6842E3
6.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6842E3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6842E3 | 1.00 | 6.04 | 3.48 | 6.04 |
| #FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067E8
Deuteranopia (green-blind)
#005EE0
Tritanopia (blue-blind)
#326D8E
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #6842e3; /* rgb */ color: rgb(104, 66, 227); /* oklch */ color: oklch(52.3% 0.228 286.3);
Tailwind
colors: {
custom: {
50: '#9f7aed',
500: '#6842e3',
950: '#000000',
},
}SCSS
$custom: #6842e3; $custom-light: #9f7aed; $custom-dark: #000000;
JSON
{
"hex": "#6842e3",
"rgb": {
"r": 104,
"g": 66,
"b": 227
},
"hsl": {
"h": 254.161,
"s": 74.194,
"l": 57.451
},
"oklch": {
"l": 0.52285,
"c": 0.22806,
"h": 286.3
},
"luminance": 0.12386
}Semantic roles & 50–950 ramp
primary
#6842E3
secondary
#D2E1A0
accent
#F137C5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84