#645FA0#645FA0

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

Color values

HEX#645FA0
RGBrgb(100, 95, 160)
HSLhsl(245, 25%, 50%)
HSVhsv(245, 41%, 63%)
CMYKcmyk(37.5%, 40.6%, 0%, 37.3%)
CIE-LABlab(43.41, 18.23, -34.60)
CIE-LCHlch(43.41, 39.11, 297.78°)
OKLaboklab(51.92% 0.0276 -0.0972)
OKLCHoklch(51.92% 0.101 285.8)
XYZxyz(15.6912, 13.4313, 35.0167)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FA0 #9BA05F
analogous
#5F7BA0 #645FA0 #845FA0
triadic
#645FA0 #A0645F #5FA064
tetradic
#645FA0 #A05F7B #9BA05F #5FA084
square
#645FA0 #A05F7B #9BA05F #5FA084
split-complementary
#645FA0 #A0845F #7BA05F
monochromatic
#343153 #4C487A #645FA0 #8985B7 #AEACCE

Accessibility & contrast

On white

5.70
#645FA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#645FA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FA0
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FA0#FFFFFF#000000##FFFFFF
##645FA01.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A68A3
Deuteranopia (green-blind)
#48659E
Tritanopia (blue-blind)
#546B78
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #645fa0;
/* rgb */ color: rgb(100, 95, 160);
/* oklch */ color: oklch(51.9% 0.101 285.8);
Tailwind
colors: {
  custom: {
    50: '#928cbc',
    500: '#645fa0',
    950: '#000000',
  },
}
SCSS
$custom: #645fa0;
$custom-light: #928cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#645fa0",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 160
  },
  "hsl": {
    "h": 244.615,
    "s": 25.49,
    "l": 50
  },
  "oklch": {
    "l": 0.51921,
    "c": 0.10103,
    "h": 285.8
  },
  "luminance": 0.13432
}

Semantic roles & 50–950 ramp

primary
#645FA0
secondary
#BABC9F
accent
#C266BB
background
#F9F8FB
surface
#F1F0F6
border
#CBCBD0
text
#0D0C12
muted
#7E7D81

Preview Lab

Preview with #645FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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