#645ED2#645ED2
#645ED2 is a mid, vivid blue. Relative luminance 0.154; OKLCH L 54.9% C 0.173 H 281.4°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).
Color values
| HEX | #645ED2 |
|---|---|
| RGB | rgb(100, 94, 210) |
| HSL | hsl(243, 56%, 60%) |
| HSV | hsv(243, 55%, 82%) |
| CMYK | cmyk(52.4%, 55.2%, 0%, 17.6%) |
| CIE-LAB | lab(46.13, 33.92, -59.38) |
| CIE-LCH | lch(46.13, 68.38, 299.74°) |
| OKLab | oklab(54.93% 0.0342 -0.1698) |
| OKLCH | oklch(54.93% 0.173 281.4) |
| XYZ | xyz(20.8875, 15.3667, 62.8257) |
| Luminance | 0.1537 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark Periwinkle
#665FD1
ΔE00 0.46
Slate Blue
#6A5ACD
ΔE00 1.97
Light Indigo
#6D5ACF
ΔE00 2.28
Iris
#6258C4
ΔE00 2.79
Warm Blue
#4B57DB
ΔE00 4.09
Mediumslateblue
#7B68EE
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#645ED2 #CCD25E
analogous
#5E92D2 #645ED2 #9E5ED2
triadic
#645ED2 #D2645E #5ED264
tetradic
#645ED2 #D25E92 #CCD25E #5ED29E
square
#645ED2 #D25E92 #CCD25E #5ED29E
split-complementary
#645ED2 #D29E5E #92D25E
monochromatic
#2D288E #3C35BE #645ED2 #928EDF #C0BEED
Accessibility & contrast
On white
5.16
#645ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.07
#645ED2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #645ED2
5.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##645ED2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##645ED2 | 1.00 | 5.16 | 4.07 | 5.16 |
| #FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1071D6
Deuteranopia (green-blind)
#0069D0
Tritanopia (blue-blind)
#35788F
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #645ed2; /* rgb */ color: rgb(100, 94, 210); /* oklch */ color: oklch(54.9% 0.173 281.4);
Tailwind
colors: {
custom: {
50: '#988ce0',
500: '#645ed2',
950: '#000000',
},
}SCSS
$custom: #645ed2; $custom-light: #988ce0; $custom-dark: #000000;
JSON
{
"hex": "#645ed2",
"rgb": {
"r": 100,
"g": 94,
"b": 210
},
"hsl": {
"h": 243.103,
"s": 56.311,
"l": 59.608
},
"oklch": {
"l": 0.54934,
"c": 0.17325,
"h": 281.4
},
"luminance": 0.15368
}Semantic roles & 50–950 ramp
primary
#645ED2
secondary
#DADCAF
accent
#E048D8
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0C15
muted
#7E7D83