#645FA6#645FA6

#645FA6 is a mid, moderate blue. Relative luminance 0.136; OKLCH L 52.3% C 0.110 H 285.1°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#645FA6
RGBrgb(100, 95, 166)
HSLhsl(244, 29%, 51%)
HSVhsv(244, 43%, 65%)
CMYKcmyk(39.8%, 42.8%, 0%, 34.9%)
CIE-LABlab(43.72, 19.97, -37.66)
CIE-LCHlch(43.72, 42.62, 297.93°)
OKLaboklab(52.26% 0.0287 -0.1061)
OKLCHoklch(52.26% 0.11 285.1)
XYZxyz(16.2287, 13.6463, 37.8479)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645FA6 #A1A65F
analogous
#5F7DA6 #645FA6 #875FA6
triadic
#645FA6 #A6645F #5FA664
tetradic
#645FA6 #A65F7D #A1A65F #5FA687
square
#645FA6 #A65F7D #A1A65F #5FA687
split-complementary
#645FA6 #A6875F #7DA65F
monochromatic
#343259 #4B4780 #645FA6 #8A86BC #B0AED2

Accessibility & contrast

On white

5.63
#645FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#645FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #645FA6
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645FA6#FFFFFF#000000##FFFFFF
##645FA61.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4669A9
Deuteranopia (green-blind)
#4465A4
Tritanopia (blue-blind)
#516D7A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #645fa6;
/* rgb */ color: rgb(100, 95, 166);
/* oklch */ color: oklch(52.3% 0.110 285.1);
Tailwind
colors: {
  custom: {
    50: '#938cc1',
    500: '#645fa6',
    950: '#000000',
  },
}
SCSS
$custom: #645fa6;
$custom-light: #938cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#645fa6",
  "rgb": {
    "r": 100,
    "g": 95,
    "b": 166
  },
  "hsl": {
    "h": 244.225,
    "s": 28.514,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52264,
    "c": 0.10991,
    "h": 285.1
  },
  "luminance": 0.13647
}

Semantic roles & 50–950 ramp

primary
#645FA6
secondary
#BEC0A1
accent
#C563BE
background
#F9F8FB
surface
#F2F0F7
border
#CCCBD0
text
#0D0C12
muted
#7E7D81

Preview Lab

Preview with #645FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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