#645AE4#645AE4

#645AE4 is a mid, highly saturated blue. Relative luminance 0.156; OKLCH L 55.6% C 0.202 H 280.8°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#645AE4
RGBrgb(100, 90, 228)
HSLhsl(244, 72%, 62%)
HSVhsv(244, 61%, 89%)
CMYKcmyk(56.1%, 60.5%, 0%, 10.6%)
CIE-LABlab(46.47, 41.89, -69.07)
CIE-LCHlch(46.47, 80.78, 301.24°)
OKLaboklab(55.59% 0.0379 -0.1984)
OKLCHoklch(55.59% 0.202 280.8)
XYZxyz(22.9109, 15.6216, 75.1917)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645AE4 #DAE45A
analogous
#5A95E4 #645AE4 #A95AE4
triadic
#645AE4 #E4645A #5AE464
tetradic
#645AE4 #E45A95 #DAE45A #5AE4A9
square
#645AE4 #E45A95 #DAE45A #5AE4A9
split-complementary
#645AE4 #E4A95A #95E45A
monochromatic
#261CA8 #3325DB #645AE4 #958FED #C7C3F5

Accessibility & contrast

On white

5.09
#645AE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#645AE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645AE4
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645AE4#FFFFFF#000000##FFFFFF
##645AE41.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E8
Deuteranopia (green-blind)
#0069E1
Tritanopia (blue-blind)
#1F7B96
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #645ae4;
/* rgb */ color: rgb(100, 90, 228);
/* oklch */ color: oklch(55.6% 0.202 280.8);
Tailwind
colors: {
  custom: {
    50: '#9b89ed',
    500: '#645ae4',
    950: '#000000',
  },
}
SCSS
$custom: #645ae4;
$custom-light: #9b89ed;
$custom-dark: #000000;
JSON
{
  "hex": "#645ae4",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 228
  },
  "hsl": {
    "h": 244.348,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.55588,
    "c": 0.20195,
    "h": 280.8
  },
  "luminance": 0.15623
}

Semantic roles & 50–950 ramp

primary
#645AE4
secondary
#E2E6B4
accent
#D412C6
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #645AE4

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

Preview Lab → · Contrast checker → · Palette generator →

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