#645498#645498
#645498 is a mid, moderate violet. Relative luminance 0.113; OKLCH L 49.3% C 0.107 H 292.9°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).
Color values
| HEX | #645498 |
|---|---|
| RGB | rgb(100, 84, 152) |
| HSL | hsl(254, 29%, 46%) |
| HSV | hsv(254, 45%, 60%) |
| CMYK | cmyk(34.2%, 44.7%, 0%, 40.4%) |
| CIE-LAB | lab(40.11, 22.79, -35.03) |
| CIE-LCH | lch(40.11, 41.79, 303.04°) |
| OKLab | oklab(49.28% 0.0415 -0.0985) |
| OKLCH | oklch(49.28% 0.107 292.9) |
| XYZ | xyz(14.0919, 11.3167, 31.1416) |
| Luminance | 0.1132 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Twilight
#4E518B
ΔE00 5.32
Royal Purple
#7851A9
ΔE00 5.36
Dusk
#4E5481
ΔE00 6.85
Blueberry
#464196
ΔE00 7.93
Iris
#6258C4
ΔE00 7.98
Darkslateblue
#483D8B
ΔE00 8.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645498 #889854
analogous
#546698 #645498 #865498
triadic
#645498 #986454 #549864
tetradic
#645498 #985466 #889854 #549886
square
#645498 #985466 #889854 #549886
split-complementary
#645498 #988654 #669854
monochromatic
#302849 #4A3E71 #645498 #8476B3 #A89DC9
Accessibility & contrast
On white
6.44
#645498 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#645498 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645498
6.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645498 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645498 | 1.00 | 6.44 | 3.26 | 6.44 |
| #FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3E5F9B
Deuteranopia (green-blind)
#405D96
Tritanopia (blue-blind)
#58616E
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #645498; /* rgb */ color: rgb(100, 84, 152); /* oklch */ color: oklch(49.3% 0.107 292.9);
Tailwind
colors: {
custom: {
50: '#9284b6',
500: '#645498',
950: '#000000',
},
}SCSS
$custom: #645498; $custom-light: #9284b6; $custom-dark: #000000;
JSON
{
"hex": "#645498",
"rgb": {
"r": 100,
"g": 84,
"b": 152
},
"hsl": {
"h": 254.118,
"s": 28.814,
"l": 46.275
},
"oklch": {
"l": 0.49281,
"c": 0.10687,
"h": 292.9
},
"luminance": 0.11317
}Semantic roles & 50–950 ramp
primary
#645498
secondary
#AEB692
accent
#C563AE
background
#F9F8FB
surface
#F1EFF6
border
#CBCAD0
text
#0D0B11
muted
#7E7C80