#645FA8#645FA8
#645FA8 is a mid, moderate blue. Relative luminance 0.137; OKLCH L 52.4% C 0.113 H 284.9°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).
Color values
| HEX | #645FA8 |
|---|---|
| RGB | rgb(100, 95, 168) |
| HSL | hsl(244, 30%, 52%) |
| HSV | hsv(244, 43%, 66%) |
| CMYK | cmyk(40.5%, 43.5%, 0%, 34.1%) |
| CIE-LAB | lab(43.83, 20.55, -38.67) |
| CIE-LCH | lch(43.83, 43.79, 297.99°) |
| OKLab | oklab(52.38% 0.029 -0.109) |
| OKLCH | oklch(52.38% 0.113 284.9) |
| XYZ | xyz(16.4136, 13.7203, 38.8217) |
| Luminance | 0.1372 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 5.55
Slate Blue
#6A5ACD
ΔE00 6.56
Dark Periwinkle
#665FD1
ΔE00 6.76
Twilight
#4E518B
ΔE00 6.83
Light Indigo
#6D5ACF
ΔE00 6.93
Royal Purple
#7851A9
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645FA8 #A3A85F
analogous
#5F7FA8 #645FA8 #895FA8
triadic
#645FA8 #A8645F #5FA864
tetradic
#645FA8 #A85F7F #A3A85F #5FA889
square
#645FA8 #A85F7F #A3A85F #5FA889
split-complementary
#645FA8 #A8895F #7FA85F
monochromatic
#34325B #4B4783 #645FA8 #8A87BE #B1AED3
Accessibility & contrast
On white
5.61
#645FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.74
#645FA8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645FA8
5.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645FA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645FA8 | 1.00 | 5.61 | 3.74 | 5.61 |
| #FFFFFF | 5.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#456AAB
Deuteranopia (green-blind)
#4365A6
Tritanopia (blue-blind)
#506D7B
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #645fa8; /* rgb */ color: rgb(100, 95, 168); /* oklch */ color: oklch(52.4% 0.113 284.9);
Tailwind
colors: {
custom: {
50: '#938cc2',
500: '#645fa8',
950: '#000000',
},
}SCSS
$custom: #645fa8; $custom-light: #938cc2; $custom-dark: #000000;
JSON
{
"hex": "#645fa8",
"rgb": {
"r": 100,
"g": 95,
"b": 168
},
"hsl": {
"h": 244.11,
"s": 29.555,
"l": 51.569
},
"oklch": {
"l": 0.52381,
"c": 0.11285,
"h": 284.9
},
"luminance": 0.13721
}Semantic roles & 50–950 ramp
primary
#645FA8
secondary
#BFC1A1
accent
#C662BF
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0D0C12
muted
#7E7D81