#6842C2#6842C2
#6842C2 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.189 H 291.6°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).
Color values
| HEX | #6842C2 |
|---|---|
| RGB | rgb(104, 66, 194) |
| HSL | hsl(258, 51%, 51%) |
| HSV | hsv(258, 66%, 76%) |
| CMYK | cmyk(46.4%, 66%, 0%, 23.9%) |
| CIE-LAB | lab(39.13, 46.24, -61.47) |
| CIE-LCH | lch(39.13, 76.92, 306.95°) |
| OKLab | oklab(49.53% 0.0697 -0.1759) |
| OKLCH | oklch(49.53% 0.189 291.6) |
| XYZ | xyz(17.3920, 10.7339, 52.1840) |
| Luminance | 0.1074 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 1.29
Blue With A Hint Of Purple
#533CC6
ΔE00 3.62
Blurple
#5539CC
ΔE00 3.78
Ocean Blue
#4F42B5
ΔE00 4.53
Burple
#6832E3
ΔE00 4.92
Bluish Purple
#703BE7
ΔE00 5.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6842C2 #9CC242
analogous
#425CC2 #6842C2 #A842C2
triadic
#6842C2 #C26842 #42C268
tetradic
#6842C2 #C2425C #9CC242 #42C2A8
square
#6842C2 #C2425C #9CC242 #42C2A8
split-complementary
#6842C2 #C2A842 #5CC242
monochromatic
#362268 #4F3196 #6842C2 #8D70D1 #B29FE0
Accessibility & contrast
On white
6.67
#6842C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.15
#6842C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6842C2
6.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6842C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6842C2 | 1.00 | 6.67 | 3.15 | 6.67 |
| #FFFFFF | 6.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0059BF
Tritanopia (blue-blind)
#4C617C
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #6842c2; /* rgb */ color: rgb(104, 66, 194); /* oklch */ color: oklch(49.5% 0.189 291.6);
Tailwind
colors: {
custom: {
50: '#9a79d5',
500: '#6842c2',
950: '#000000',
},
}SCSS
$custom: #6842c2; $custom-light: #9a79d5; $custom-dark: #000000;
JSON
{
"hex": "#6842c2",
"rgb": {
"r": 104,
"g": 66,
"b": 194
},
"hsl": {
"h": 257.813,
"s": 51.2,
"l": 50.98
},
"oklch": {
"l": 0.49527,
"c": 0.18924,
"h": 291.6
},
"luminance": 0.10735
}Semantic roles & 50–950 ramp
primary
#6842C2
secondary
#BBCC94
accent
#DB4DB1
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0914
muted
#7F7B83