#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
RGBrgb(100, 94, 210)
HSLhsl(243, 56%, 60%)
HSVhsv(243, 55%, 82%)
CMYKcmyk(52.4%, 55.2%, 0%, 17.6%)
CIE-LABlab(46.13, 33.92, -59.38)
CIE-LCHlch(46.13, 68.38, 299.74°)
OKLaboklab(54.93% 0.0342 -0.1698)
OKLCHoklch(54.93% 0.173 281.4)
XYZxyz(20.8875, 15.3667, 62.8257)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

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
##645ED21.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.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

Preview Lab

Preview with #645ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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