#645FD4#645FD4

#645FD4 is a mid, vivid blue. Relative luminance 0.156; OKLCH L 55.3% C 0.175 H 280.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#645FD4
RGBrgb(100, 95, 212)
HSLhsl(243, 58%, 60%)
HSVhsv(243, 55%, 83%)
CMYKcmyk(52.8%, 55.2%, 0%, 16.9%)
CIE-LABlab(46.51, 33.94, -59.92)
CIE-LCHlch(46.51, 68.86, 299.53°)
OKLaboklab(55.26% 0.0332 -0.1714)
OKLCHoklch(55.26% 0.175 280.9)
XYZxyz(21.2277, 15.6459, 64.1760)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FD4 #CFD45F
analogous
#5F95D4 #645FD4 #9E5FD4
triadic
#645FD4 #D4645F #5FD464
tetradic
#645FD4 #D45F95 #CFD45F #5FD49E
square
#645FD4 #D45F95 #CFD45F #5FD49E
split-complementary
#645FD4 #D49E5F #95D45F
monochromatic
#2C2791 #3A34C2 #645FD4 #938FE1 #C1BFEE

Accessibility & contrast

On white

5.09
#645FD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#645FD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FD4
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FD4#FFFFFF#000000##FFFFFF
##645FD41.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1073D8
Deuteranopia (green-blind)
#006AD2
Tritanopia (blue-blind)
#337A90
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #645fd4;
/* rgb */ color: rgb(100, 95, 212);
/* oklch */ color: oklch(55.3% 0.175 280.9);
Tailwind
colors: {
  custom: {
    50: '#988ce2',
    500: '#645fd4',
    950: '#000000',
  },
}
SCSS
$custom: #645fd4;
$custom-light: #988ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#645fd4",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 212
  },
  "hsl": {
    "h": 242.564,
    "s": 57.635,
    "l": 60.196
  },
  "oklch": {
    "l": 0.55255,
    "c": 0.1746,
    "h": 280.9
  },
  "luminance": 0.15647
}

Semantic roles & 50–950 ramp

primary
#645FD4
secondary
#DCDEB1
accent
#C520BE
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0F0C15
muted
#7E7D83

Preview Lab

Preview with #645FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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