#645ED6#645ED6

#645ED6 is a mid, vivid blue. Relative luminance 0.156; OKLCH L 55.2% C 0.179 H 281.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#645ED6
RGBrgb(100, 94, 214)
HSLhsl(243, 59%, 60%)
HSVhsv(243, 56%, 84%)
CMYKcmyk(53.3%, 56.1%, 0%, 16.1%)
CIE-LABlab(46.40, 35.16, -61.23)
CIE-LCHlch(46.40, 70.60, 299.87°)
OKLaboklab(55.22% 0.0342 -0.1753)
OKLCHoklch(55.22% 0.179 281.1)
XYZxyz(21.3921, 15.5685, 65.4831)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645ED6 #D0D65E
analogous
#5E94D6 #645ED6 #A05ED6
triadic
#645ED6 #D6645E #5ED664
tetradic
#645ED6 #D65E94 #D0D65E #5ED6A0
square
#645ED6 #D65E94 #D0D65E #5ED6A0
split-complementary
#645ED6 #D6A05E #94D65E
monochromatic
#2B2694 #3932C5 #645ED6 #938FE2 #C2C0EF

Accessibility & contrast

On white

5.10
#645ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#645ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645ED6
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645ED6#FFFFFF#000000##FFFFFF
##645ED61.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DA
Deuteranopia (green-blind)
#006AD3
Tritanopia (blue-blind)
#317A91
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #645ed6;
/* rgb */ color: rgb(100, 94, 214);
/* oklch */ color: oklch(55.2% 0.179 281.1);
Tailwind
colors: {
  custom: {
    50: '#998ce3',
    500: '#645ed6',
    950: '#000000',
  },
}
SCSS
$custom: #645ed6;
$custom-light: #998ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#645ed6",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 214
  },
  "hsl": {
    "h": 243,
    "s": 59.406,
    "l": 60.392
  },
  "oklch": {
    "l": 0.55221,
    "c": 0.17859,
    "h": 281.1
  },
  "luminance": 0.1557
}

Semantic roles & 50–950 ramp

primary
#645ED6
secondary
#DDDFB1
accent
#C71EBF
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #645ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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