#645FA6#645FA6
#645FA6 is a mid, moderate blue. Relative luminance 0.136; OKLCH L 52.3% C 0.110 H 285.1°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).
Color values
| HEX | #645FA6 |
|---|---|
| RGB | rgb(100, 95, 166) |
| HSL | hsl(244, 29%, 51%) |
| HSV | hsv(244, 43%, 65%) |
| CMYK | cmyk(39.8%, 42.8%, 0%, 34.9%) |
| CIE-LAB | lab(43.72, 19.97, -37.66) |
| CIE-LCH | lch(43.72, 42.62, 297.93°) |
| OKLab | oklab(52.26% 0.0287 -0.1061) |
| OKLCH | oklch(52.26% 0.11 285.1) |
| XYZ | xyz(16.2287, 13.6463, 37.8479) |
| Luminance | 0.1365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 5.92
Twilight
#4E518B
ΔE00 6.64
Slate Blue
#6A5ACD
ΔE00 6.93
Dark Periwinkle
#665FD1
ΔE00 7.14
Royal Purple
#7851A9
ΔE00 7.28
Light Indigo
#6D5ACF
ΔE00 7.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645FA6 #A1A65F
analogous
#5F7DA6 #645FA6 #875FA6
triadic
#645FA6 #A6645F #5FA664
tetradic
#645FA6 #A65F7D #A1A65F #5FA687
square
#645FA6 #A65F7D #A1A65F #5FA687
split-complementary
#645FA6 #A6875F #7DA65F
monochromatic
#343259 #4B4780 #645FA6 #8A86BC #B0AED2
Accessibility & contrast
On white
5.63
#645FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.73
#645FA6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645FA6
5.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645FA6 | 1.00 | 5.63 | 3.73 | 5.63 |
| #FFFFFF | 5.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4669A9
Deuteranopia (green-blind)
#4465A4
Tritanopia (blue-blind)
#516D7A
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #645fa6; /* rgb */ color: rgb(100, 95, 166); /* oklch */ color: oklch(52.3% 0.110 285.1);
Tailwind
colors: {
custom: {
50: '#938cc1',
500: '#645fa6',
950: '#000000',
},
}SCSS
$custom: #645fa6; $custom-light: #938cc1; $custom-dark: #000000;
JSON
{
"hex": "#645fa6",
"rgb": {
"r": 100,
"g": 95,
"b": 166
},
"hsl": {
"h": 244.225,
"s": 28.514,
"l": 51.176
},
"oklch": {
"l": 0.52264,
"c": 0.10991,
"h": 285.1
},
"luminance": 0.13647
}Semantic roles & 50–950 ramp
primary
#645FA6
secondary
#BEC0A1
accent
#C563BE
background
#F9F8FB
surface
#F2F0F7
border
#CCCBD0
text
#0D0C12
muted
#7E7D81