#6342C7#6342C7
#6342C7 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.195 H 288.5°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).
Color values
| HEX | #6342C7 |
|---|---|
| RGB | rgb(99, 66, 199) |
| HSL | hsl(255, 54%, 52%) |
| HSV | hsv(255, 67%, 78%) |
| CMYK | cmyk(50.3%, 66.8%, 0%, 22%) |
| CIE-LAB | lab(39.02, 46.74, -64.57) |
| CIE-LCH | lch(39.02, 79.71, 305.90°) |
| OKLab | oklab(49.46% 0.0621 -0.1852) |
| OKLCH | oklch(49.46% 0.195 288.5) |
| XYZ | xyz(17.3996, 10.6718, 55.1648) |
| Luminance | 0.1067 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 0.29
Blue With A Hint Of Purple
#533CC6
ΔE00 2.80
Blurple
#5539CC
ΔE00 2.95
Ocean Blue
#4F42B5
ΔE00 4.10
Burple
#6832E3
ΔE00 4.43
Purpley Blue
#5F34E7
ΔE00 4.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#6342C7 #A6C742
analogous
#4264C7 #6342C7 #A642C7
triadic
#6342C7 #C76342 #42C763
tetradic
#6342C7 #C74264 #A6C742 #42C7A6
square
#6342C7 #C74264 #A6C742 #42C7A6
split-complementary
#6342C7 #C7A642 #64C742
monochromatic
#34216E #4A2F9D #6342C7 #8A71D5 #B1A0E3
Accessibility & contrast
On white
6.70
#6342C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#6342C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #6342C7
6.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##6342C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##6342C7 | 1.00 | 6.70 | 3.13 | 6.70 |
| #FFFFFF | 6.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#0058C4
Tritanopia (blue-blind)
#3F637F
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #6342c7; /* rgb */ color: rgb(99, 66, 199); /* oklch */ color: oklch(49.5% 0.195 288.5);
Tailwind
colors: {
custom: {
50: '#9879d9',
500: '#6342c7',
950: '#000000',
},
}SCSS
$custom: #6342c7; $custom-light: #9879d9; $custom-dark: #000000;
JSON
{
"hex": "#6342c7",
"rgb": {
"r": 99,
"g": 66,
"b": 199
},
"hsl": {
"h": 254.887,
"s": 54.286,
"l": 51.961
},
"oklch": {
"l": 0.49455,
"c": 0.19537,
"h": 288.5
},
"luminance": 0.10673
}Semantic roles & 50–950 ramp
primary
#6342C7
secondary
#C1D095
accent
#DE4AB9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83