#642FB3#642FB3
#642FB3 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.4% C 0.194 H 296.0°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).
Color values
| HEX | #642FB3 |
|---|---|
| RGB | rgb(100, 47, 179) |
| HSL | hsl(264, 58%, 44%) |
| HSV | hsv(264, 74%, 70%) |
| CMYK | cmyk(44.1%, 73.7%, 0%, 29.8%) |
| CIE-LAB | lab(33.98, 51.18, -61.05) |
| CIE-LCH | lch(33.98, 79.66, 309.97°) |
| OKLab | oklab(45.37% 0.0851 -0.1748) |
| OKLCH | oklch(45.37% 0.194 296) |
| XYZ | xyz(14.4066, 7.9967, 43.4236) |
| Luminance | 0.0800 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 4.34
Rebeccapurple
#663399
ΔE00 4.37
Blurple
#5539CC
ΔE00 4.92
Blue With A Hint Of Purple
#533CC6
ΔE00 5.00
Bluey Purple
#6241C7
ΔE00 5.13
Violet Blue
#510AC9
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#642FB3 #7EB32F
analogous
#2F3CB3 #642FB3 #A62FB3
triadic
#642FB3 #B3642F #2FB364
tetradic
#642FB3 #B32F3C #7EB32F #2FB3A6
square
#642FB3 #B32F3C #7EB32F #2FB3A6
split-complementary
#642FB3 #B3A62F #3CB32F
monochromatic
#2E1652 #492283 #642FB3 #834FD1 #A57FDD
Accessibility & contrast
On white
8.08
#642FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.60
#642FB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #642FB3
8.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##642FB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##642FB3 | 1.00 | 8.08 | 2.60 | 8.08 |
| #FFFFFF | 8.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#4F516E
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #642fb3; /* rgb */ color: rgb(100, 47, 179); /* oklch */ color: oklch(45.4% 0.194 296.0);
Tailwind
colors: {
custom: {
50: '#976dcb',
500: '#642fb3',
950: '#000000',
},
}SCSS
$custom: #642fb3; $custom-light: #976dcb; $custom-dark: #000000;
JSON
{
"hex": "#642fb3",
"rgb": {
"r": 100,
"g": 47,
"b": 179
},
"hsl": {
"h": 264.091,
"s": 58.407,
"l": 44.314
},
"oklch": {
"l": 0.45374,
"c": 0.19438,
"h": 296
},
"luminance": 0.07997
}Semantic roles & 50–950 ramp
primary
#642FB3
secondary
#A7C678
accent
#E246A3
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82