#645DA8#645DA8

#645DA8 is a mid, moderate blue. Relative luminance 0.134; OKLCH L 52.0% C 0.116 H 285.9°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#645DA8
RGBrgb(100, 93, 168)
HSLhsl(246, 30%, 51%)
HSVhsv(246, 45%, 66%)
CMYKcmyk(40.5%, 44.6%, 0%, 34.1%)
CIE-LABlab(43.31, 21.79, -39.49)
CIE-LCHlch(43.31, 45.11, 298.89°)
OKLaboklab(51.99% 0.0317 -0.1115)
OKLCHoklch(51.99% 0.116 285.9)
XYZxyz(16.2358, 13.3646, 38.7624)
Luminance0.1336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645DA8 #A1A85D
analogous
#5D7BA8 #645DA8 #895DA8
triadic
#645DA8 #A8645D #5DA864
tetradic
#645DA8 #A85D7B #A1A85D #5DA889
square
#645DA8 #A85D7B #A1A85D #5DA889
split-complementary
#645DA8 #A8895D #7BA85D
monochromatic
#34305A #4B4682 #645DA8 #8A85BD #B0ADD3

Accessibility & contrast

On white

5.72
#645DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#645DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645DA8
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645DA8#FFFFFF#000000##FFFFFF
##645DA81.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4268AB
Deuteranopia (green-blind)
#4064A6
Tritanopia (blue-blind)
#516C7A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #645da8;
/* rgb */ color: rgb(100, 93, 168);
/* oklch */ color: oklch(52.0% 0.116 285.9);
Tailwind
colors: {
  custom: {
    50: '#938bc2',
    500: '#645da8',
    950: '#000000',
  },
}
SCSS
$custom: #645da8;
$custom-light: #938bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#645da8",
  "rgb": {
    "r": 100,
    "g": 93,
    "b": 168
  },
  "hsl": {
    "h": 245.6,
    "s": 30.12,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51986,
    "c": 0.1159,
    "h": 285.9
  },
  "luminance": 0.13365
}

Semantic roles & 50–950 ramp

primary
#645DA8
secondary
#BEC1A0
accent
#C661BD
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0D0C12
muted
#7E7D81

Preview Lab

Preview with #645DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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