#642CAC#642CAC
#642CAC is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.190 H 298.1°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).
Color values
| HEX | #642CAC |
|---|---|
| RGB | rgb(100, 44, 172) |
| HSL | hsl(266, 59%, 42%) |
| HSV | hsv(266, 74%, 67%) |
| CMYK | cmyk(41.9%, 74.4%, 0%, 32.5%) |
| CIE-LAB | lab(32.90, 50.77, -58.64) |
| CIE-LCH | lch(32.90, 77.56, 310.89°) |
| OKLab | oklab(44.43% 0.0894 -0.1677) |
| OKLCH | oklch(44.43% 0.19 298.1) |
| XYZ | xyz(13.6007, 7.4890, 39.7507) |
| Luminance | 0.0749 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Rebeccapurple
#663399
ΔE00 3.56
Purple Blue
#5D21D0
ΔE00 5.12
Blurple
#5539CC
ΔE00 6.07
Violet Blue
#510AC9
ΔE00 6.09
Blue With A Hint Of Purple
#533CC6
ΔE00 6.10
Purple (survey)
#7E1E9C
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#642CAC #74AC2C
analogous
#2C34AC #642CAC #A42CAC
triadic
#642CAC #AC642C #2CAC64
tetradic
#642CAC #AC2C34 #74AC2C #2CACA4
square
#642CAC #AC2C34 #74AC2C #2CACA4
split-complementary
#642CAC #ACA42C #34AC2C
monochromatic
#2B134B #48207B #642CAC #8246D0 #A376DC
Accessibility & contrast
On white
8.41
#642CAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.50
#642CAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #642CAC
8.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##642CAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##642CAC | 1.00 | 8.41 | 2.50 | 8.41 |
| #FFFFFF | 8.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#524D6A
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #642cac; /* rgb */ color: rgb(100, 44, 172); /* oklch */ color: oklch(44.4% 0.190 298.1);
Tailwind
colors: {
custom: {
50: '#976bc6',
500: '#642cac',
950: '#000000',
},
}SCSS
$custom: #642cac; $custom-light: #976bc6; $custom-dark: #000000;
JSON
{
"hex": "#642cac",
"rgb": {
"r": 100,
"g": 44,
"b": 172
},
"hsl": {
"h": 266.25,
"s": 59.259,
"l": 42.353
},
"oklch": {
"l": 0.44429,
"c": 0.19003,
"h": 298.1
},
"luminance": 0.07489
}Semantic roles & 50–950 ramp
primary
#642CAC
secondary
#9FC470
accent
#E2459E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82