#6342C2#6342C2
#6342C2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.189 H 289.4°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).
Color values
| HEX | #6342C2 |
|---|---|
| RGB | rgb(99, 66, 194) |
| HSL | hsl(255, 51%, 51%) |
| HSV | hsv(255, 66%, 76%) |
| CMYK | cmyk(49%, 66%, 0%, 23.9%) |
| CIE-LAB | lab(38.63, 45.30, -62.30) |
| CIE-LCH | lch(38.63, 77.03, 306.02°) |
| OKLab | oklab(49.05% 0.0628 -0.1786) |
| OKLCH | oklch(49.05% 0.189 289.4) |
| XYZ | xyz(16.8286, 10.4434, 52.1576) |
| Luminance | 0.1044 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.76
Blue With A Hint Of Purple
#533CC6
ΔE00 2.86
Blurple
#5539CC
ΔE00 3.17
Ocean Blue
#4F42B5
ΔE00 3.76
Burple
#6832E3
ΔE00 4.97
Purpley Blue
#5F34E7
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6342C2 #A1C242
analogous
#4261C2 #6342C2 #A342C2
triadic
#6342C2 #C26342 #42C263
tetradic
#6342C2 #C24261 #A1C242 #42C2A3
square
#6342C2 #C24261 #A1C242 #42C2A3
split-complementary
#6342C2 #C2A342 #61C242
monochromatic
#342268 #4B3196 #6342C2 #8970D1 #AF9FE0
Accessibility & contrast
On white
6.80
#6342C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.09
#6342C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6342C2
6.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6342C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6342C2 | 1.00 | 6.80 | 3.09 | 6.80 |
| #FFFFFF | 6.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0058BF
Tritanopia (blue-blind)
#43617C
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #6342c2; /* rgb */ color: rgb(99, 66, 194); /* oklch */ color: oklch(49.0% 0.189 289.4);
Tailwind
colors: {
custom: {
50: '#9778d5',
500: '#6342c2',
950: '#000000',
},
}SCSS
$custom: #6342c2; $custom-light: #9778d5; $custom-dark: #000000;
JSON
{
"hex": "#6342c2",
"rgb": {
"r": 99,
"g": 66,
"b": 194
},
"hsl": {
"h": 255.469,
"s": 51.2,
"l": 50.98
},
"oklch": {
"l": 0.49047,
"c": 0.18928,
"h": 289.4
},
"luminance": 0.10444
}Semantic roles & 50–950 ramp
primary
#6342C2
secondary
#BECC94
accent
#DB4DB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83