#645FA5#645FA5
#645FA5 is a mid, moderate blue. Relative luminance 0.136; OKLCH L 52.2% C 0.108 H 285.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).
Color values
| HEX | #645FA5 |
|---|---|
| RGB | rgb(100, 95, 165) |
| HSL | hsl(244, 28%, 51%) |
| HSV | hsv(244, 42%, 65%) |
| CMYK | cmyk(39.4%, 42.4%, 0%, 35.3%) |
| CIE-LAB | lab(43.67, 19.68, -37.15) |
| CIE-LCH | lch(43.67, 42.04, 297.91°) |
| OKLab | oklab(52.21% 0.0285 -0.1046) |
| OKLCH | oklch(52.21% 0.108 285.2) |
| XYZ | xyz(16.1374, 13.6098, 37.3667) |
| Luminance | 0.1361 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 6.10
Twilight
#4E518B
ΔE00 6.55
Slate Blue
#6A5ACD
ΔE00 7.12
Royal Purple
#7851A9
ΔE00 7.31
Dark Periwinkle
#665FD1
ΔE00 7.34
Dusky Blue
#475F94
ΔE00 7.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645FA5 #A0A55F
analogous
#5F7DA5 #645FA5 #875FA5
triadic
#645FA5 #A5645F #5FA564
tetradic
#645FA5 #A55F7D #A0A55F #5FA587
square
#645FA5 #A55F7D #A0A55F #5FA587
split-complementary
#645FA5 #A5875F #7DA55F
monochromatic
#343258 #4C487F #645FA5 #8A86BB #B0ADD1
Accessibility & contrast
On white
5.64
#645FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.72
#645FA5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645FA5
5.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645FA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645FA5 | 1.00 | 5.64 | 3.72 | 5.64 |
| #FFFFFF | 5.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4769A8
Deuteranopia (green-blind)
#4565A3
Tritanopia (blue-blind)
#526D7A
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #645fa5; /* rgb */ color: rgb(100, 95, 165); /* oklch */ color: oklch(52.2% 0.108 285.2);
Tailwind
colors: {
custom: {
50: '#938cc0',
500: '#645fa5',
950: '#000000',
},
}SCSS
$custom: #645fa5; $custom-light: #938cc0; $custom-dark: #000000;
JSON
{
"hex": "#645fa5",
"rgb": {
"r": 100,
"g": 95,
"b": 165
},
"hsl": {
"h": 244.286,
"s": 28,
"l": 50.98
},
"oklch": {
"l": 0.52206,
"c": 0.10844,
"h": 285.2
},
"luminance": 0.1361
}Semantic roles & 50–950 ramp
primary
#645FA5
secondary
#BDBFA0
accent
#C463BD
background
#F9F8FB
surface
#F2F0F7
border
#CCCBD0
text
#0D0C12
muted
#7E7D81