#645BA4#645BA4
#645BA4 is a mid, moderate blue. Relative luminance 0.129; OKLCH L 51.4% C 0.113 H 287.4°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).
Color values
| HEX | #645BA4 |
|---|---|
| RGB | rgb(100, 91, 164) |
| HSL | hsl(247, 29%, 50%) |
| HSV | hsv(247, 45%, 64%) |
| CMYK | cmyk(39%, 44.5%, 0%, 35.7%) |
| CIE-LAB | lab(42.57, 21.86, -38.30) |
| CIE-LCH | lch(42.57, 44.10, 299.72°) |
| OKLab | oklab(51.35% 0.0338 -0.108) |
| OKLCH | oklch(51.35% 0.113 287.4) |
| XYZ | xyz(15.6956, 12.8713, 36.7722) |
| Luminance | 0.1287 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 5.78
Twilight
#4E518B
ΔE00 6.06
Royal Purple
#7851A9
ΔE00 6.20
Slate Blue
#6A5ACD
ΔE00 6.93
Light Indigo
#6D5ACF
ΔE00 7.28
Dusk
#4E5481
ΔE00 7.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645BA4 #9BA45B
analogous
#5B77A4 #645BA4 #885BA4
triadic
#645BA4 #A4645B #5BA464
tetradic
#645BA4 #A45B77 #9BA45B #5BA488
square
#645BA4 #A45B77 #9BA45B #5BA488
split-complementary
#645BA4 #A4885B #77A45B
monochromatic
#342F55 #4C457D #645BA4 #8982BA #AEAAD0
Accessibility & contrast
On white
5.88
#645BA4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.57
#645BA4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645BA4
5.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645BA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645BA4 | 1.00 | 5.88 | 3.57 | 5.88 |
| #FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4166A7
Deuteranopia (green-blind)
#4163A2
Tritanopia (blue-blind)
#536977
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #645ba4; /* rgb */ color: rgb(100, 91, 164); /* oklch */ color: oklch(51.4% 0.113 287.4);
Tailwind
colors: {
custom: {
50: '#9389bf',
500: '#645ba4',
950: '#000000',
},
}SCSS
$custom: #645ba4; $custom-light: #9389bf; $custom-dark: #000000;
JSON
{
"hex": "#645ba4",
"rgb": {
"r": 100,
"g": 91,
"b": 164
},
"hsl": {
"h": 247.397,
"s": 28.627,
"l": 50
},
"oklch": {
"l": 0.51354,
"c": 0.11314,
"h": 287.4
},
"luminance": 0.12872
}Semantic roles & 50–950 ramp
primary
#645BA4
secondary
#BABE9D
accent
#C563B9
background
#F9F8FB
surface
#F2F0F7
border
#CCCBD0
text
#0D0B12
muted
#7E7C81