#645795#645795
#645795 is a mid, moderate violet. Relative luminance 0.117; OKLCH L 49.7% C 0.098 H 292.1°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).
Color values
| HEX | #645795 |
|---|---|
| RGB | rgb(100, 87, 149) |
| HSL | hsl(253, 26%, 46%) |
| HSV | hsv(253, 42%, 58%) |
| CMYK | cmyk(32.9%, 41.6%, 0%, 41.6%) |
| CIE-LAB | lab(40.73, 20.09, -32.25) |
| CIE-LCH | lch(40.73, 38.00, 301.92°) |
| OKLab | oklab(49.7% 0.0367 -0.0904) |
| OKLCH | oklch(49.7% 0.098 292.1) |
| XYZ | xyz(14.0872, 11.6954, 29.9432) |
| Luminance | 0.1170 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Twilight
#4E518B
ΔE00 5.18
Dusk
#4E5481
ΔE00 6.22
Royal Purple
#7851A9
ΔE00 6.30
Iris
#6258C4
ΔE00 8.70
Blueberry
#464196
ΔE00 8.90
Darkslateblue
#483D8B
ΔE00 9.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645795 #889557
analogous
#576995 #645795 #835795
triadic
#645795 #956457 #579564
tetradic
#645795 #955769 #889557 #579583
square
#645795 #955769 #889557 #579583
split-complementary
#645795 #958357 #699557
monochromatic
#302A48 #4A406E #645795 #8479B1 #A89FC7
Accessibility & contrast
On white
6.29
#645795 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#645795 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645795
6.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645795 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645795 | 1.00 | 6.29 | 3.34 | 6.29 |
| #FFFFFF | 6.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#446197
Deuteranopia (green-blind)
#455F93
Tritanopia (blue-blind)
#59626F
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #645795; /* rgb */ color: rgb(100, 87, 149); /* oklch */ color: oklch(49.7% 0.098 292.1);
Tailwind
colors: {
custom: {
50: '#9286b4',
500: '#645795',
950: '#000000',
},
}SCSS
$custom: #645795; $custom-light: #9286b4; $custom-dark: #000000;
JSON
{
"hex": "#645795",
"rgb": {
"r": 100,
"g": 87,
"b": 149
},
"hsl": {
"h": 252.581,
"s": 26.271,
"l": 46.275
},
"oklch": {
"l": 0.49698,
"c": 0.09754,
"h": 292.1
},
"luminance": 0.11696
}Semantic roles & 50–950 ramp
primary
#645795
secondary
#AEB593
accent
#C365AF
background
#F9F8FB
surface
#F1EFF6
border
#CBCAD0
text
#0D0B11
muted
#7E7C80