#645AA6#645AA6
#645AA6 is a mid, moderate blue. Relative luminance 0.128; OKLCH L 51.3% C 0.118 H 287.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).
Color values
| HEX | #645AA6 |
|---|---|
| RGB | rgb(100, 90, 166) |
| HSL | hsl(248, 30%, 50%) |
| HSV | hsv(248, 46%, 65%) |
| CMYK | cmyk(39.8%, 45.8%, 0%, 34.9%) |
| CIE-LAB | lab(42.42, 23.06, -39.72) |
| CIE-LCH | lch(42.42, 45.93, 300.14°) |
| OKLab | oklab(51.28% 0.0354 -0.1121) |
| OKLCH | oklch(51.28% 0.118 287.5) |
| XYZ | xyz(15.7927, 12.7743, 37.7026) |
| Luminance | 0.1278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 5.30
Royal Purple
#7851A9
ΔE00 5.91
Twilight
#4E518B
ΔE00 6.21
Slate Blue
#6A5ACD
ΔE00 6.50
Light Indigo
#6D5ACF
ΔE00 6.85
Dark Periwinkle
#665FD1
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645AA6 #9CA65A
analogous
#5A76A6 #645AA6 #8A5AA6
triadic
#645AA6 #A6645A #5AA664
tetradic
#645AA6 #A65A76 #9CA65A #5AA68A
square
#645AA6 #A65A76 #9CA65A #5AA68A
split-complementary
#645AA6 #A68A5A #76A65A
monochromatic
#342F57 #4C447F #645AA6 #8982BB #AFAAD1
Accessibility & contrast
On white
5.91
#645AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.56
#645AA6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645AA6
5.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645AA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645AA6 | 1.00 | 5.91 | 3.56 | 5.91 |
| #FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3E66A9
Deuteranopia (green-blind)
#3E62A4
Tritanopia (blue-blind)
#526978
Achromatopsia (no color)
#646464
Design tokens & code
CSS
--color: #645aa6; /* rgb */ color: rgb(100, 90, 166); /* oklch */ color: oklch(51.3% 0.118 287.5);
Tailwind
colors: {
custom: {
50: '#9388c1',
500: '#645aa6',
950: '#000000',
},
}SCSS
$custom: #645aa6; $custom-light: #9388c1; $custom-dark: #000000;
JSON
{
"hex": "#645aa6",
"rgb": {
"r": 100,
"g": 90,
"b": 166
},
"hsl": {
"h": 247.895,
"s": 29.921,
"l": 50.196
},
"oklch": {
"l": 0.51279,
"c": 0.1176,
"h": 287.5
},
"luminance": 0.12775
}Semantic roles & 50–950 ramp
primary
#645AA6
secondary
#BABF9D
accent
#C662B9
background
#F9F8FB
surface
#F2F0F7
border
#CCCBD0
text
#0D0B12
muted
#7E7C81