#645BC7#645BC7
#645BC7 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.6% C 0.162 H 283.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).
Color values
| HEX | #645BC7 |
|---|---|
| RGB | rgb(100, 91, 199) |
| HSL | hsl(245, 49%, 57%) |
| HSV | hsv(245, 54%, 78%) |
| CMYK | cmyk(49.7%, 54.3%, 0%, 22%) |
| CIE-LAB | lab(44.68, 32.34, -55.40) |
| CIE-LCH | lch(44.68, 64.15, 300.28°) |
| OKLab | oklab(53.62% 0.0372 -0.1582) |
| OKLCH | oklch(53.62% 0.162 283.2) |
| XYZ | xyz(19.3023, 14.3140, 55.7676) |
| Luminance | 0.1431 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 1.05
Slate Blue
#6A5ACD
ΔE00 1.49
Dark Periwinkle
#665FD1
ΔE00 1.95
Light Indigo
#6D5ACF
ΔE00 2.09
Warm Blue
#4B57DB
ΔE00 4.60
Bluey Purple
#6241C7
ΔE00 7.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645BC7 #BEC75B
analogous
#5B88C7 #645BC7 #9A5BC7
triadic
#645BC7 #C7645B #5BC764
tetradic
#645BC7 #C75B88 #BEC75B #5BC79A
square
#645BC7 #C75B88 #BEC75B #5BC79A
split-complementary
#645BC7 #C79A5B #88C75B
monochromatic
#322B7D #443AAB #645BC7 #8F89D7 #BAB6E6
Accessibility & contrast
On white
5.44
#645BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.86
#645BC7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645BC7
5.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645BC7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645BC7 | 1.00 | 5.44 | 3.86 | 5.44 |
| #FFFFFF | 5.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D6DCB
Deuteranopia (green-blind)
#1366C5
Tritanopia (blue-blind)
#3F7388
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #645bc7; /* rgb */ color: rgb(100, 91, 199); /* oklch */ color: oklch(53.6% 0.162 283.2);
Tailwind
colors: {
custom: {
50: '#9789d9',
500: '#645bc7',
950: '#000000',
},
}SCSS
$custom: #645bc7; $custom-light: #9789d9; $custom-dark: #000000;
JSON
{
"hex": "#645bc7",
"rgb": {
"r": 100,
"g": 91,
"b": 199
},
"hsl": {
"h": 245,
"s": 49.091,
"l": 56.863
},
"oklch": {
"l": 0.5362,
"c": 0.16245,
"h": 283.2
},
"luminance": 0.14315
}Semantic roles & 50–950 ramp
primary
#645BC7
secondary
#D1D5A9
accent
#D94FCD
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0B15
muted
#7E7C83