#645FA2#645FA2

#645FA2 is a mid, moderate blue. Relative luminance 0.135; OKLCH L 52.0% C 0.104 H 285.6°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#645FA2
RGBrgb(100, 95, 162)
HSLhsl(244, 26%, 50%)
HSVhsv(244, 41%, 64%)
CMYKcmyk(38.3%, 41.4%, 0%, 36.5%)
CIE-LABlab(43.51, 18.80, -35.62)
CIE-LCHlch(43.51, 40.28, 297.83°)
OKLaboklab(52.03% 0.028 -0.1002)
OKLCHoklch(52.03% 0.104 285.6)
XYZxyz(15.8675, 13.5019, 35.9455)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FA2 #9DA25F
analogous
#5F7BA2 #645FA2 #865FA2
triadic
#645FA2 #A2645F #5FA264
tetradic
#645FA2 #A25F7B #9DA25F #5FA286
square
#645FA2 #A25F7B #9DA25F #5FA286
split-complementary
#645FA2 #A2865F #7BA25F
monochromatic
#343155 #4C487C #645FA2 #8986B8 #AFACCF

Accessibility & contrast

On white

5.68
#645FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#645FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FA2
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FA2#FFFFFF#000000##FFFFFF
##645FA21.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4969A5
Deuteranopia (green-blind)
#4765A0
Tritanopia (blue-blind)
#536C79
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #645fa2;
/* rgb */ color: rgb(100, 95, 162);
/* oklch */ color: oklch(52.0% 0.104 285.6);
Tailwind
colors: {
  custom: {
    50: '#938cbe',
    500: '#645fa2',
    950: '#000000',
  },
}
SCSS
$custom: #645fa2;
$custom-light: #938cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#645fa2",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 162
  },
  "hsl": {
    "h": 244.478,
    "s": 26.482,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52034,
    "c": 0.104,
    "h": 285.6
  },
  "luminance": 0.13502
}

Semantic roles & 50–950 ramp

primary
#645FA2
secondary
#BBBD9F
accent
#C365BC
background
#F9F8FB
surface
#F1F0F7
border
#CBCBD0
text
#0D0C12
muted
#7E7D81

Preview Lab

Preview with #645FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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