#645FA8#645FA8

#645FA8 is a mid, moderate blue. Relative luminance 0.137; OKLCH L 52.4% C 0.113 H 284.9°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#645FA8
RGBrgb(100, 95, 168)
HSLhsl(244, 30%, 52%)
HSVhsv(244, 43%, 66%)
CMYKcmyk(40.5%, 43.5%, 0%, 34.1%)
CIE-LABlab(43.83, 20.55, -38.67)
CIE-LCHlch(43.83, 43.79, 297.99°)
OKLaboklab(52.38% 0.029 -0.109)
OKLCHoklch(52.38% 0.113 284.9)
XYZxyz(16.4136, 13.7203, 38.8217)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FA8 #A3A85F
analogous
#5F7FA8 #645FA8 #895FA8
triadic
#645FA8 #A8645F #5FA864
tetradic
#645FA8 #A85F7F #A3A85F #5FA889
square
#645FA8 #A85F7F #A3A85F #5FA889
split-complementary
#645FA8 #A8895F #7FA85F
monochromatic
#34325B #4B4783 #645FA8 #8A87BE #B1AED3

Accessibility & contrast

On white

5.61
#645FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#645FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FA8
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FA8#FFFFFF#000000##FFFFFF
##645FA81.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456AAB
Deuteranopia (green-blind)
#4365A6
Tritanopia (blue-blind)
#506D7B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #645fa8;
/* rgb */ color: rgb(100, 95, 168);
/* oklch */ color: oklch(52.4% 0.113 284.9);
Tailwind
colors: {
  custom: {
    50: '#938cc2',
    500: '#645fa8',
    950: '#000000',
  },
}
SCSS
$custom: #645fa8;
$custom-light: #938cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#645fa8",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 244.11,
    "s": 29.555,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52381,
    "c": 0.11285,
    "h": 284.9
  },
  "luminance": 0.13721
}

Semantic roles & 50–950 ramp

primary
#645FA8
secondary
#BFC1A1
accent
#C662BF
background
#F9F8FC
surface
#F2F0F8
border
#CCCBD1
text
#0D0C12
muted
#7E7D81

Preview Lab

Preview with #645FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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