#645AE2#645AE2

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

Color values

HEX#645AE2
RGBrgb(100, 90, 226)
HSLhsl(244, 70%, 62%)
HSVhsv(244, 60%, 89%)
CMYKcmyk(55.8%, 60.2%, 0%, 11.4%)
CIE-LABlab(46.33, 41.27, -68.17)
CIE-LCHlch(46.33, 79.69, 301.19°)
OKLaboklab(55.43% 0.038 -0.1957)
OKLCHoklch(55.43% 0.199 281)
XYZxyz(22.6349, 15.5112, 73.7380)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645AE2 #D8E25A
analogous
#5A94E2 #645AE2 #A85AE2
triadic
#645AE2 #E2645A #5AE264
tetradic
#645AE2 #E25A94 #D8E25A #5AE2A8
square
#645AE2 #E25A94 #D8E25A #5AE2A8
split-complementary
#645AE2 #E2A85A #94E25A
monochromatic
#271DA5 #3326D9 #645AE2 #958EEB #C6C2F4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##645AE2#FFFFFF#000000##FFFFFF
##645AE21.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)
#0073E6
Deuteranopia (green-blind)
#0069DF
Tritanopia (blue-blind)
#227B95
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #645ae2;
/* rgb */ color: rgb(100, 90, 226);
/* oklch */ color: oklch(55.4% 0.199 281.0);
Tailwind
colors: {
  custom: {
    50: '#9b89ec',
    500: '#645ae2',
    950: '#000000',
  },
}
SCSS
$custom: #645ae2;
$custom-light: #9b89ec;
$custom-dark: #000000;
JSON
{
  "hex": "#645ae2",
  "rgb": {
    "r": 100,
    "g": 90,
    "b": 226
  },
  "hsl": {
    "h": 244.412,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.55433,
    "c": 0.1994,
    "h": 281
  },
  "luminance": 0.15513
}

Semantic roles & 50–950 ramp

primary
#645AE2
secondary
#E1E5B3
accent
#D213C4
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #645AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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