#645CE7#645CE7

#645CE7 is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.2% C 0.203 H 280.2°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#645CE7
RGBrgb(100, 92, 231)
HSLhsl(243, 74%, 63%)
HSVhsv(243, 60%, 91%)
CMYKcmyk(56.7%, 60.2%, 0%, 9.4%)
CIE-LABlab(47.15, 41.64, -69.67)
CIE-LCHlch(47.15, 81.17, 300.87°)
OKLaboklab(56.15% 0.0359 -0.2001)
OKLCHoklch(56.15% 0.203 280.2)
XYZxyz(23.5019, 16.1316, 77.4611)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CE7 #DFE75C
analogous
#5C99E7 #645CE7 #A95CE7
triadic
#645CE7 #E7645C #5CE764
tetradic
#645CE7 #E75C99 #DFE75C #5CE7A9
square
#645CE7 #E75C99 #DFE75C #5CE7A9
split-complementary
#645CE7 #E7A95C #99E75C
monochromatic
#221AAF #3127DF #645CE7 #9791EF #C9C7F7

Accessibility & contrast

On white

4.97
#645CE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#645CE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CE7
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CE7#FFFFFF#000000##FFFFFF
##645CE71.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EC
Deuteranopia (green-blind)
#006AE4
Tritanopia (blue-blind)
#187E99
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #645ce7;
/* rgb */ color: rgb(100, 92, 231);
/* oklch */ color: oklch(56.2% 0.203 280.2);
Tailwind
colors: {
  custom: {
    50: '#9b8af0',
    500: '#645ce7',
    950: '#000000',
  },
}
SCSS
$custom: #645ce7;
$custom-light: #9b8af0;
$custom-dark: #000000;
JSON
{
  "hex": "#645ce7",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 243.453,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.56151,
    "c": 0.20332,
    "h": 280.2
  },
  "luminance": 0.16133
}

Semantic roles & 50–950 ramp

primary
#645CE7
secondary
#E5E8B7
accent
#D60FCB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #645CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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