#643171#643171

#643171 is a dark, moderate purple. Relative luminance 0.061; OKLCH L 40.8% C 0.117 H 319.1°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#643171
RGBrgb(100, 49, 113)
HSLhsl(288, 40%, 32%)
HSVhsv(288, 57%, 44%)
CMYKcmyk(11.5%, 56.6%, 0%, 55.7%)
CIE-LABlab(29.66, 33.87, -27.48)
CIE-LCHlch(29.66, 43.62, 320.95°)
OKLaboklab(40.78% 0.0883 -0.0764)
OKLCHoklch(40.78% 0.117 319.1)
XYZxyz(9.3341, 6.0986, 16.3050)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#643171 #3E7131
analogous
#443171 #643171 #71315E
triadic
#643171 #716431 #317164
tetradic
#643171 #714431 #3E7131 #315E71
square
#643171 #714431 #3E7131 #315E71
split-complementary
#643171 #5E7131 #317144
monochromatic
#180C1C #3E1E46 #643171 #8A449C #A962BB

Accessibility & contrast

On white

9.46
#643171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#643171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #643171
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##643171#FFFFFF#000000##FFFFFF
##6431711.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244273
Deuteranopia (green-blind)
#35486F
Tritanopia (blue-blind)
#643A4C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #643171;
/* rgb */ color: rgb(100, 49, 113);
/* oklch */ color: oklch(40.8% 0.117 319.1);
Tailwind
colors: {
  custom: {
    50: '#926c9a',
    500: '#643171',
    950: '#000000',
  },
}
SCSS
$custom: #643171;
$custom-light: #926c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#643171",
  "rgb": {
    "r": 100,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 287.813,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40784,
    "c": 0.11674,
    "h": 319.1
  },
  "luminance": 0.06098
}

Semantic roles & 50–950 ramp

primary
#643171
secondary
#6AA25C
accent
#CF5871
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D070E
muted
#7E7A7E

Preview Lab

Preview with #643171

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

Preview Lab → · Contrast checker → · Palette generator →

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