#645895#645895
#645895 is a mid, moderate violet. Relative luminance 0.119; OKLCH L 49.9% C 0.096 H 291.6°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).
Color values
| HEX | #645895 |
|---|---|
| RGB | rgb(100, 88, 149) |
| HSL | hsl(252, 26%, 46%) |
| HSV | hsv(252, 41%, 58%) |
| CMYK | cmyk(32.9%, 40.9%, 0%, 41.6%) |
| CIE-LAB | lab(40.99, 19.47, -31.84) |
| CIE-LCH | lch(40.99, 37.32, 301.44°) |
| OKLab | oklab(49.9% 0.0352 -0.0892) |
| OKLCH | oklch(49.9% 0.096 291.6) |
| XYZ | xyz(14.1687, 11.8584, 29.9703) |
| Luminance | 0.1186 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Twilight
#4E518B
ΔE00 5.19
Dusk
#4E5481
ΔE00 6.11
Royal Purple
#7851A9
ΔE00 6.53
Iris
#6258C4
ΔE00 8.75
Dusky Blue
#475F94
ΔE00 9.08
Blueberry
#464196
ΔE00 9.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645895 #899558
analogous
#586B95 #645895 #835895
triadic
#645895 #956458 #589564
tetradic
#645895 #95586B #899558 #589583
square
#645895 #95586B #899558 #589583
split-complementary
#645895 #958358 #6B9558
monochromatic
#302B48 #4A416F #645895 #857AB0 #A8A0C7
Accessibility & contrast
On white
6.23
#645895 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.37
#645895 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645895
6.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645895 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645895 | 1.00 | 6.23 | 3.37 | 6.23 |
| #FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#466297
Deuteranopia (green-blind)
#475F93
Tritanopia (blue-blind)
#59636F
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #645895; /* rgb */ color: rgb(100, 88, 149); /* oklch */ color: oklch(49.9% 0.096 291.6);
Tailwind
colors: {
custom: {
50: '#9287b4',
500: '#645895',
950: '#000000',
},
}SCSS
$custom: #645895; $custom-light: #9287b4; $custom-dark: #000000;
JSON
{
"hex": "#645895",
"rgb": {
"r": 100,
"g": 88,
"b": 149
},
"hsl": {
"h": 251.803,
"s": 25.738,
"l": 46.471
},
"oklch": {
"l": 0.49897,
"c": 0.09588,
"h": 291.6
},
"luminance": 0.11859
}Semantic roles & 50–950 ramp
primary
#645895
secondary
#AEB594
accent
#C266B0
background
#F9F8FB
surface
#F1EFF6
border
#CBCAD0
text
#0D0B11
muted
#7E7C80