#645CA8#645CA8

#645CA8 is a mid, moderate blue. Relative luminance 0.132; OKLCH L 51.8% C 0.117 H 286.4°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#645CA8
RGBrgb(100, 92, 168)
HSLhsl(246, 30%, 51%)
HSVhsv(246, 45%, 66%)
CMYKcmyk(40.5%, 45.2%, 0%, 34.1%)
CIE-LABlab(43.05, 22.41, -39.90)
CIE-LCHlch(43.05, 45.77, 299.32°)
OKLaboklab(51.79% 0.0331 -0.1127)
OKLCHoklch(51.79% 0.117 286.4)
XYZxyz(16.1486, 13.1902, 38.7333)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645CA8 #A0A85C
analogous
#5C7AA8 #645CA8 #8A5CA8
triadic
#645CA8 #A8645C #5CA864
tetradic
#645CA8 #A85C7A #A0A85C #5CA88A
square
#645CA8 #A85C7A #A0A85C #5CA88A
split-complementary
#645CA8 #A88A5C #7AA85C
monochromatic
#34305A #4C4582 #645CA8 #8A84BD #B0ACD3

Accessibility & contrast

On white

5.77
#645CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#645CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645CA8
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645CA8#FFFFFF#000000##FFFFFF
##645CA81.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4068AB
Deuteranopia (green-blind)
#3F64A6
Tritanopia (blue-blind)
#516B7A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #645ca8;
/* rgb */ color: rgb(100, 92, 168);
/* oklch */ color: oklch(51.8% 0.117 286.4);
Tailwind
colors: {
  custom: {
    50: '#938ac2',
    500: '#645ca8',
    950: '#000000',
  },
}
SCSS
$custom: #645ca8;
$custom-light: #938ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#645ca8",
  "rgb": {
    "r": 100,
    "g": 92,
    "b": 168
  },
  "hsl": {
    "h": 246.316,
    "s": 30.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51789,
    "c": 0.11742,
    "h": 286.4
  },
  "luminance": 0.13191
}

Semantic roles & 50–950 ramp

primary
#645CA8
secondary
#BDC19F
accent
#C761BC
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0D0B12
muted
#7E7C81

Preview Lab

Preview with #645CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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