#645FD8#645FD8

#645FD8 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.5% C 0.180 H 280.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#645FD8
RGBrgb(100, 95, 216)
HSLhsl(242, 61%, 61%)
HSVhsv(242, 56%, 85%)
CMYKcmyk(53.7%, 56%, 0%, 15.3%)
CIE-LABlab(46.78, 35.18, -61.76)
CIE-LCHlch(46.78, 71.08, 299.67°)
OKLaboklab(55.54% 0.0332 -0.1768)
OKLCHoklch(55.54% 0.18 280.6)
XYZxyz(21.7386, 15.8503, 66.8664)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FD8 #D3D85F
analogous
#5F96D8 #645FD8 #A05FD8
triadic
#645FD8 #D8645F #5FD864
tetradic
#645FD8 #D85F96 #D3D85F #5FD8A0
square
#645FD8 #D85F96 #D3D85F #5FD8A0
split-complementary
#645FD8 #D8A05F #96D85F
monochromatic
#2A2598 #3731C9 #645FD8 #9490E4 #C3C1F0

Accessibility & contrast

On white

5.04
#645FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#645FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FD8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FD8#FFFFFF#000000##FFFFFF
##645FD81.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DC
Deuteranopia (green-blind)
#006AD5
Tritanopia (blue-blind)
#2F7B92
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #645fd8;
/* rgb */ color: rgb(100, 95, 216);
/* oklch */ color: oklch(55.5% 0.180 280.6);
Tailwind
colors: {
  custom: {
    50: '#998ce5',
    500: '#645fd8',
    950: '#000000',
  },
}
SCSS
$custom: #645fd8;
$custom-light: #998ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#645fd8",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 216
  },
  "hsl": {
    "h": 242.479,
    "s": 60.804,
    "l": 60.98
  },
  "oklch": {
    "l": 0.55542,
    "c": 0.17994,
    "h": 280.6
  },
  "luminance": 0.15852
}

Semantic roles & 50–950 ramp

primary
#645FD8
secondary
#DEE0B3
accent
#C81DC1
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #645FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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