#642AC5#642AC5
#642AC5 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.4% C 0.219 H 292.6°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).
Color values
| HEX | #642AC5 |
|---|---|
| RGB | rgb(100, 42, 197) |
| HSL | hsl(262, 65%, 47%) |
| HSV | hsv(262, 79%, 77%) |
| CMYK | cmyk(49.2%, 78.7%, 0%, 22.7%) |
| CIE-LAB | lab(34.79, 58.05, -70.32) |
| CIE-LCH | lch(34.79, 91.19, 309.54°) |
| OKLab | oklab(46.43% 0.0843 -0.2019) |
| OKLCH | oklch(46.43% 0.219 292.6) |
| XYZ | xyz(16.1587, 8.3959, 53.5817) |
| Luminance | 0.0840 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 2.03
Blurple
#5539CC
ΔE00 3.79
Blue With A Hint Of Purple
#533CC6
ΔE00 4.40
Burple
#6832E3
ΔE00 4.52
Violet Blue
#510AC9
ΔE00 4.66
Bluey Purple
#6241C7
ΔE00 4.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#642AC5 #8BC52A
analogous
#2A3DC5 #642AC5 #B22AC5
triadic
#642AC5 #C5642A #2AC564
tetradic
#642AC5 #C52A3D #8BC52A #2AC5B2
square
#642AC5 #C52A3D #8BC52A #2AC5B2
split-complementary
#642AC5 #C5B22A #3DC52A
monochromatic
#311460 #4A1F93 #642AC5 #8552DA #A985E5
Accessibility & contrast
On white
7.84
#642AC5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.68
#642AC5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #642AC5
7.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##642AC5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##642AC5 | 1.00 | 7.84 | 2.68 | 7.84 |
| #FFFFFF | 7.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054C9
Deuteranopia (green-blind)
#004FC2
Tritanopia (blue-blind)
#445678
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #642ac5; /* rgb */ color: rgb(100, 42, 197); /* oklch */ color: oklch(46.4% 0.219 292.6);
Tailwind
colors: {
custom: {
50: '#9a6bd8',
500: '#642ac5',
950: '#000000',
},
}SCSS
$custom: #642ac5; $custom-light: #9a6bd8; $custom-dark: #000000;
JSON
{
"hex": "#642ac5",
"rgb": {
"r": 100,
"g": 42,
"b": 197
},
"hsl": {
"h": 262.452,
"s": 64.854,
"l": 46.863
},
"oklch": {
"l": 0.46434,
"c": 0.2188,
"h": 292.6
},
"luminance": 0.08396
}Semantic roles & 50–950 ramp
primary
#642AC5
secondary
#B0CE7D
accent
#E840A9
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#0F0715
muted
#7F7A83