#645EA4#645EA4

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

Color values

HEX#645EA4
RGBrgb(100, 94, 164)
HSLhsl(245, 28%, 51%)
HSVhsv(245, 43%, 64%)
CMYKcmyk(39%, 42.7%, 0%, 35.7%)
CIE-LABlab(43.35, 20.00, -37.06)
CIE-LCHlch(43.35, 42.11, 298.36°)
OKLaboklab(51.95% 0.0297 -0.1044)
OKLCHoklch(51.95% 0.109 285.9)
XYZxyz(15.9572, 13.3945, 36.8594)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645EA4 #9EA45E
analogous
#5E7BA4 #645EA4 #875EA4
triadic
#645EA4 #A4645E #5EA464
tetradic
#645EA4 #A45E7B #9EA45E #5EA487
square
#645EA4 #A45E7B #9EA45E #5EA487
split-complementary
#645EA4 #A4875E #7BA45E
monochromatic
#343157 #4C477E #645EA4 #8A85BA #AFACD0

Accessibility & contrast

On white

5.71
#645EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#645EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645EA4
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645EA4#FFFFFF#000000##FFFFFF
##645EA41.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4668A7
Deuteranopia (green-blind)
#4464A2
Tritanopia (blue-blind)
#526C79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #645ea4;
/* rgb */ color: rgb(100, 94, 164);
/* oklch */ color: oklch(51.9% 0.108 285.9);
Tailwind
colors: {
  custom: {
    50: '#938bbf',
    500: '#645ea4',
    950: '#000000',
  },
}
SCSS
$custom: #645ea4;
$custom-light: #938bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#645ea4",
  "rgb": {
    "r": 100,
    "g": 94,
    "b": 164
  },
  "hsl": {
    "h": 245.143,
    "s": 27.778,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51948,
    "c": 0.1085,
    "h": 285.9
  },
  "luminance": 0.13395
}

Semantic roles & 50–950 ramp

primary
#645EA4
secondary
#BCBE9F
accent
#C464BC
background
#F9F8FB
surface
#F1F0F7
border
#CBCBD0
text
#0D0C12
muted
#7E7D81

Preview Lab

Preview with #645EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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