#645CA8#645CA8
#645CA8 is a mid, moderate blue. Relative luminance 0.132; OKLCH L 51.8% C 0.117 H 286.4°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).
Color values
| HEX | #645CA8 |
|---|---|
| RGB | rgb(100, 92, 168) |
| HSL | hsl(246, 30%, 51%) |
| HSV | hsv(246, 45%, 66%) |
| CMYK | cmyk(40.5%, 45.2%, 0%, 34.1%) |
| CIE-LAB | lab(43.05, 22.41, -39.90) |
| CIE-LCH | lch(43.05, 45.77, 299.32°) |
| OKLab | oklab(51.79% 0.0331 -0.1127) |
| OKLCH | oklch(51.79% 0.117 286.4) |
| XYZ | xyz(16.1486, 13.1902, 38.7333) |
| Luminance | 0.1319 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Iris
#6258C4
ΔE00 5.11
Slate Blue
#6A5ACD
ΔE00 6.25
Royal Purple
#7851A9
ΔE00 6.41
Twilight
#4E518B
ΔE00 6.53
Light Indigo
#6D5ACF
ΔE00 6.62
Dark Periwinkle
#665FD1
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645CA8 #A0A85C
analogous
#5C7AA8 #645CA8 #8A5CA8
triadic
#645CA8 #A8645C #5CA864
tetradic
#645CA8 #A85C7A #A0A85C #5CA88A
square
#645CA8 #A85C7A #A0A85C #5CA88A
split-complementary
#645CA8 #A88A5C #7AA85C
monochromatic
#34305A #4C4582 #645CA8 #8A84BD #B0ACD3
Accessibility & contrast
On white
5.77
#645CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.64
#645CA8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645CA8
5.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645CA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645CA8 | 1.00 | 5.77 | 3.64 | 5.77 |
| #FFFFFF | 5.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4068AB
Deuteranopia (green-blind)
#3F64A6
Tritanopia (blue-blind)
#516B7A
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #645ca8; /* rgb */ color: rgb(100, 92, 168); /* oklch */ color: oklch(51.8% 0.117 286.4);
Tailwind
colors: {
custom: {
50: '#938ac2',
500: '#645ca8',
950: '#000000',
},
}SCSS
$custom: #645ca8; $custom-light: #938ac2; $custom-dark: #000000;
JSON
{
"hex": "#645ca8",
"rgb": {
"r": 100,
"g": 92,
"b": 168
},
"hsl": {
"h": 246.316,
"s": 30.4,
"l": 50.98
},
"oklch": {
"l": 0.51789,
"c": 0.11742,
"h": 286.4
},
"luminance": 0.13191
}Semantic roles & 50–950 ramp
primary
#645CA8
secondary
#BDC19F
accent
#C761BC
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0D0B12
muted
#7E7C81