#645FEA#645FEA

#645FEA is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 56.9% C 0.203 H 279.3°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#645FEA
RGBrgb(100, 95, 234)
HSLhsl(242, 77%, 65%)
HSVhsv(242, 59%, 92%)
CMYKcmyk(57.3%, 59.4%, 0%, 8.2%)
CIE-LABlab(48.05, 40.81, -69.89)
CIE-LCHlch(48.05, 80.93, 300.28°)
OKLaboklab(56.88% 0.033 -0.2008)
OKLCHoklch(56.88% 0.203 279.3)
XYZxyz(24.1943, 16.8326, 79.8000)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FEA #E5EA5F
analogous
#5FA0EA #645FEA #A95FEA
triadic
#645FEA #EA645F #5FEA64
tetradic
#645FEA #EA5FA0 #E5EA5F #5FEAA9
square
#645FEA #EA5FA0 #E5EA5F #5FEAA9
split-complementary
#645FEA #EAA95F #A0EA5F
monochromatic
#1E18B7 #3029E3 #645FEA #9895F1 #CDCBF8

Accessibility & contrast

On white

4.81
#645FEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#645FEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FEA
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FEA#FFFFFF#000000##FFFFFF
##645FEA1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078EF
Deuteranopia (green-blind)
#006DE7
Tritanopia (blue-blind)
#0D819B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #645fea;
/* rgb */ color: rgb(100, 95, 234);
/* oklch */ color: oklch(56.9% 0.203 279.3);
Tailwind
colors: {
  custom: {
    50: '#9c8df2',
    500: '#645fea',
    950: '#000000',
  },
}
SCSS
$custom: #645fea;
$custom-light: #9c8df2;
$custom-dark: #000000;
JSON
{
  "hex": "#645fea",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 234
  },
  "hsl": {
    "h": 242.158,
    "s": 76.796,
    "l": 64.51
  },
  "oklch": {
    "l": 0.56883,
    "c": 0.20346,
    "h": 279.3
  },
  "luminance": 0.16834
}

Semantic roles & 50–950 ramp

primary
#645FEA
secondary
#E9EABA
accent
#D90CD2
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #645FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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