#642FC9#642FC9
#642FC9 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.3% C 0.218 H 291.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).
Color values
| HEX | #642FC9 |
|---|---|
| RGB | rgb(100, 47, 201) |
| HSL | hsl(261, 62%, 49%) |
| HSV | hsv(261, 77%, 79%) |
| CMYK | cmyk(50.2%, 76.6%, 0%, 21.2%) |
| CIE-LAB | lab(35.90, 56.94, -70.84) |
| CIE-LCH | lch(35.90, 90.89, 308.79°) |
| OKLab | oklab(47.32% 0.0794 -0.2035) |
| OKLCH | oklch(47.32% 0.218 291.3) |
| XYZ | xyz(16.8117, 8.9587, 56.0904) |
| Luminance | 0.0896 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple Blue
#5D21D0
ΔE00 2.45
Blurple
#5539CC
ΔE00 2.97
Burple
#6832E3
ΔE00 3.62
Blue With A Hint Of Purple
#533CC6
ΔE00 3.66
Bluey Purple
#6241C7
ΔE00 3.76
Purpley Blue
#5F34E7
ΔE00 4.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#642FC9 #94C92F
analogous
#2F47C9 #642FC9 #B12FC9
triadic
#642FC9 #C9642F #2FC964
tetradic
#642FC9 #C92F47 #94C92F #2FC9B1
square
#642FC9 #C92F47 #94C92F #2FC9B1
split-complementary
#642FC9 #C9B12F #47C92F
monochromatic
#331866 #4B2397 #642FC9 #875CD9 #AC8EE5
Accessibility & contrast
On white
7.52
#642FC9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.79
#642FC9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #642FC9
7.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##642FC9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##642FC9 | 1.00 | 7.52 | 2.79 | 7.52 |
| #FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057CD
Deuteranopia (green-blind)
#0051C6
Tritanopia (blue-blind)
#415A7B
Achromatopsia (no color)
#545454
Design tokens & code
CSS
--color: #642fc9; /* rgb */ color: rgb(100, 47, 201); /* oklch */ color: oklch(47.3% 0.218 291.3);
Tailwind
colors: {
custom: {
50: '#9a6edb',
500: '#642fc9',
950: '#000000',
},
}SCSS
$custom: #642fc9; $custom-light: #9a6edb; $custom-dark: #000000;
JSON
{
"hex": "#642fc9",
"rgb": {
"r": 100,
"g": 47,
"b": 201
},
"hsl": {
"h": 260.649,
"s": 62.097,
"l": 48.627
},
"oklch": {
"l": 0.4732,
"c": 0.21843,
"h": 291.3
},
"luminance": 0.08959
}Semantic roles & 50–950 ramp
primary
#642FC9
secondary
#B5CF85
accent
#E543AD
background
#FAF6FD
surface
#F4ECFB
border
#CEC7D4
text
#0F0715
muted
#7F7A83