#645271#645271

#645271 is a mid, muted violet. Relative luminance 0.099; OKLCH L 46.9% C 0.054 H 310.7°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#645271
RGBrgb(100, 82, 113)
HSLhsl(275, 16%, 38%)
HSVhsv(275, 27%, 44%)
CMYKcmyk(11.5%, 27.4%, 0%, 55.7%)
CIE-LABlab(37.73, 13.93, -14.94)
CIE-LCHlch(37.73, 20.43, 312.99°)
OKLaboklab(46.86% 0.035 -0.0407)
OKLCHoklch(46.86% 0.054 310.7)
XYZxyz(11.2529, 9.9363, 16.9447)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#645271 #5F7152
analogous
#545271 #645271 #71526E
triadic
#645271 #716452 #527164
tetradic
#645271 #715452 #5F7152 #526E71
square
#645271 #715452 #5F7152 #526E71
split-complementary
#645271 #6E7152 #527154
monochromatic
#251F2A #45384E #645271 #836C94 #A18FAE

Accessibility & contrast

On white

7.03
#645271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#645271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #645271
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##645271#FFFFFF#000000##FFFFFF
##6452711.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5872
Deuteranopia (green-blind)
#515970
Tritanopia (blue-blind)
#63565D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #645271;
/* rgb */ color: rgb(100, 82, 113);
/* oklch */ color: oklch(46.9% 0.054 310.7);
Tailwind
colors: {
  custom: {
    50: '#90829a',
    500: '#645271',
    950: '#000000',
  },
}
SCSS
$custom: #645271;
$custom-light: #90829a;
$custom-dark: #000000;
JSON
{
  "hex": "#645271",
  "rgb": {
    "r": 100,
    "g": 82,
    "b": 113
  },
  "hsl": {
    "h": 274.839,
    "s": 15.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46859,
    "c": 0.05372,
    "h": 310.7
  },
  "luminance": 0.09936
}

Semantic roles & 50–950 ramp

primary
#645271
secondary
#8D9C83
accent
#B96F8E
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0C0A0E
muted
#7D7C7E

Preview Lab

Preview with #645271

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

Preview Lab → · Contrast checker → · Palette generator →

#645271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva