#645CA6#645CA6

#645CA6 is a mid, moderate blue. Relative luminance 0.131; OKLCH L 51.7% C 0.115 H 286.6°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#645CA6
RGBrgb(100, 92, 166)
HSLhsl(246, 29%, 51%)
HSVhsv(246, 45%, 65%)
CMYKcmyk(39.8%, 44.6%, 0%, 34.9%)
CIE-LABlab(42.94, 21.83, -38.90)
CIE-LCHlch(42.94, 44.60, 299.30°)
OKLaboklab(51.67% 0.0328 -0.1097)
OKLCHoklch(51.67% 0.115 286.6)
XYZxyz(15.9637, 13.1163, 37.7596)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CA6 #9EA65C
analogous
#5C79A6 #645CA6 #895CA6
triadic
#645CA6 #A6645C #5CA664
tetradic
#645CA6 #A65C79 #9EA65C #5CA689
square
#645CA6 #A65C79 #9EA65C #5CA689
split-complementary
#645CA6 #A6895C #79A65C
monochromatic
#343058 #4C467F #645CA6 #8A84BC #AFABD1

Accessibility & contrast

On white

5.80
#645CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#645CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CA6
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CA6#FFFFFF#000000##FFFFFF
##645CA61.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4267A9
Deuteranopia (green-blind)
#4063A4
Tritanopia (blue-blind)
#526B79
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #645ca6;
/* rgb */ color: rgb(100, 92, 166);
/* oklch */ color: oklch(51.7% 0.115 286.6);
Tailwind
colors: {
  custom: {
    50: '#938ac1',
    500: '#645ca6',
    950: '#000000',
  },
}
SCSS
$custom: #645ca6;
$custom-light: #938ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#645ca6",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 166
  },
  "hsl": {
    "h": 246.486,
    "s": 29.365,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5167,
    "c": 0.11451,
    "h": 286.6
  },
  "luminance": 0.13117
}

Semantic roles & 50–950 ramp

primary
#645CA6
secondary
#BCBF9E
accent
#C662BB
background
#F9F8FB
surface
#F2F0F7
border
#CCCBD0
text
#0D0B12
muted
#7E7C81

Preview Lab

Preview with #645CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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