#645397#645397
#645397 is a mid, moderate violet. Relative luminance 0.111; OKLCH L 49.0% C 0.107 H 293.6°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).
Color values
| HEX | #645397 |
|---|---|
| RGB | rgb(100, 83, 151) |
| HSL | hsl(255, 29%, 46%) |
| HSV | hsv(255, 45%, 59%) |
| CMYK | cmyk(33.8%, 45%, 0%, 40.8%) |
| CIE-LAB | lab(39.80, 23.13, -34.92) |
| CIE-LCH | lch(39.80, 41.89, 303.51°) |
| OKLab | oklab(49.03% 0.0428 -0.0981) |
| OKLCH | oklch(49.03% 0.107 293.6) |
| XYZ | xyz(13.9333, 11.1299, 30.6864) |
| Luminance | 0.1113 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 5.31
Twilight
#4E518B
ΔE00 5.39
Dusk
#4E5481
ΔE00 6.93
Blueberry
#464196
ΔE00 7.81
Darkslateblue
#483D8B
ΔE00 7.98
Iris
#6258C4
ΔE00 8.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645397 #869753
analogous
#536497 #645397 #865397
triadic
#645397 #976453 #539764
tetradic
#645397 #975364 #869753 #539786
square
#645397 #975364 #869753 #539786
split-complementary
#645397 #978653 #649753
monochromatic
#302848 #4A3D70 #645397 #8474B3 #A79CC9
Accessibility & contrast
On white
6.51
#645397 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.23
#645397 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645397
6.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645397 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645397 | 1.00 | 6.51 | 3.23 | 6.51 |
| #FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3D5F9A
Deuteranopia (green-blind)
#405D95
Tritanopia (blue-blind)
#58606E
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #645397; /* rgb */ color: rgb(100, 83, 151); /* oklch */ color: oklch(49.0% 0.107 293.6);
Tailwind
colors: {
custom: {
50: '#9283b6',
500: '#645397',
950: '#000000',
},
}SCSS
$custom: #645397; $custom-light: #9283b6; $custom-dark: #000000;
JSON
{
"hex": "#645397",
"rgb": {
"r": 100,
"g": 83,
"b": 151
},
"hsl": {
"h": 255,
"s": 29.06,
"l": 45.882
},
"oklch": {
"l": 0.49029,
"c": 0.10707,
"h": 293.6
},
"luminance": 0.1113
}Semantic roles & 50–950 ramp
primary
#645397
secondary
#ACB690
accent
#C562AD
background
#F9F8FB
surface
#F1EFF6
border
#CBCAD0
text
#0D0A11
muted
#7E7C80