#645ED5#645ED5

#645ED5 is a mid, vivid blue. Relative luminance 0.155; OKLCH L 55.1% C 0.177 H 281.1°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#645ED5
RGBrgb(100, 94, 213)
HSLhsl(243, 59%, 60%)
HSVhsv(243, 56%, 84%)
CMYKcmyk(53.1%, 55.9%, 0%, 16.5%)
CIE-LABlab(46.34, 34.85, -60.77)
CIE-LCHlch(46.34, 70.05, 299.84°)
OKLaboklab(55.15% 0.0342 -0.1739)
OKLCHoklch(55.15% 0.177 281.1)
XYZxyz(21.2648, 15.5176, 64.8126)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645ED5 #CFD55E
analogous
#5E94D5 #645ED5 #9F5ED5
triadic
#645ED5 #D5645E #5ED564
tetradic
#645ED5 #D55E94 #CFD55E #5ED59F
square
#645ED5 #D55E94 #CFD55E #5ED59F
split-complementary
#645ED5 #D59F5E #94D55E
monochromatic
#2C2692 #3A33C3 #645ED5 #938FE2 #C1BFEE

Accessibility & contrast

On white

5.12
#645ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#645ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645ED5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645ED5#FFFFFF#000000##FFFFFF
##645ED51.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0372D9
Deuteranopia (green-blind)
#0069D3
Tritanopia (blue-blind)
#327990
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #645ed5;
/* rgb */ color: rgb(100, 94, 213);
/* oklch */ color: oklch(55.1% 0.177 281.1);
Tailwind
colors: {
  custom: {
    50: '#998ce3',
    500: '#645ed5',
    950: '#000000',
  },
}
SCSS
$custom: #645ed5;
$custom-light: #998ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#645ed5",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 213
  },
  "hsl": {
    "h": 243.025,
    "s": 58.621,
    "l": 60.196
  },
  "oklch": {
    "l": 0.55149,
    "c": 0.17726,
    "h": 281.1
  },
  "luminance": 0.15519
}

Semantic roles & 50–950 ramp

primary
#645ED5
secondary
#DCDEB1
accent
#C61FBE
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0F0C15
muted
#7E7D84

Preview Lab

Preview with #645ED5

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#645ED5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva