#645CE3#645CE3

#645CE3 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.8% C 0.198 H 280.5°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#645CE3
RGBrgb(100, 92, 227)
HSLhsl(244, 71%, 63%)
HSVhsv(244, 59%, 89%)
CMYKcmyk(55.9%, 59.5%, 0%, 11%)
CIE-LABlab(46.85, 40.40, -67.88)
CIE-LCHlch(46.85, 79.00, 300.76°)
OKLaboklab(55.84% 0.0361 -0.1949)
OKLCHoklch(55.84% 0.198 280.5)
XYZxyz(22.9435, 15.9082, 74.5197)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CE3 #DBE35C
analogous
#5C97E3 #645CE3 #A85CE3
triadic
#645CE3 #E3645C #5CE364
tetradic
#645CE3 #E35C97 #DBE35C #5CE3A8
square
#645CE3 #E35C97 #DBE35C #5CE3A8
split-complementary
#645CE3 #E3A85C #97E35C
monochromatic
#251DA8 #3228DA #645CE3 #9690EC #C7C4F5

Accessibility & contrast

On white

5.02
#645CE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#645CE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CE3
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CE3#FFFFFF#000000##FFFFFF
##645CE31.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E7
Deuteranopia (green-blind)
#006AE0
Tritanopia (blue-blind)
#207C97
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #645ce3;
/* rgb */ color: rgb(100, 92, 227);
/* oklch */ color: oklch(55.8% 0.198 280.5);
Tailwind
colors: {
  custom: {
    50: '#9b8aed',
    500: '#645ce3',
    950: '#000000',
  },
}
SCSS
$custom: #645ce3;
$custom-light: #9b8aed;
$custom-dark: #000000;
JSON
{
  "hex": "#645ce3",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 243.556,
    "s": 70.681,
    "l": 62.549
  },
  "oklch": {
    "l": 0.55844,
    "c": 0.19818,
    "h": 280.5
  },
  "luminance": 0.1591
}

Semantic roles & 50–950 ramp

primary
#645CE3
secondary
#E3E6B5
accent
#D313C7
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0C16
muted
#7F7D84

Preview Lab

Preview with #645CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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