#642D71#642D71

#642D71 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.2% C 0.124 H 319.6°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#642D71
RGBrgb(100, 45, 113)
HSLhsl(289, 43%, 31%)
HSVhsv(289, 60%, 44%)
CMYKcmyk(11.5%, 60.2%, 0%, 55.7%)
CIE-LABlab(28.85, 36.05, -28.77)
CIE-LCHlch(28.85, 46.12, 321.41°)
OKLaboklab(40.19% 0.0941 -0.0801)
OKLCHoklch(40.19% 0.124 319.6)
XYZxyz(9.1742, 5.7787, 16.2517)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D71 #3A712D
analogous
#422D71 #642D71 #712D5C
triadic
#642D71 #71642D #2D7164
tetradic
#642D71 #71422D #3A712D #2D5C71
square
#642D71 #71422D #3A712D #2D5C71
split-complementary
#642D71 #5C712D #2D7142
monochromatic
#170A19 #3D1C45 #642D71 #8B3E9D #AB5BBE

Accessibility & contrast

On white

9.74
#642D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#642D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642D71
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D71#FFFFFF#000000##FFFFFF
##642D711.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4073
Deuteranopia (green-blind)
#32466F
Tritanopia (blue-blind)
#64374A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #642d71;
/* rgb */ color: rgb(100, 45, 113);
/* oklch */ color: oklch(40.2% 0.124 319.6);
Tailwind
colors: {
  custom: {
    50: '#92699a',
    500: '#642d71',
    950: '#000000',
  },
}
SCSS
$custom: #642d71;
$custom-light: #92699a;
$custom-dark: #000000;
JSON
{
  "hex": "#642d71",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 288.529,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40189,
    "c": 0.12357,
    "h": 319.6
  },
  "luminance": 0.05778
}

Semantic roles & 50–950 ramp

primary
#642D71
secondary
#66A357
accent
#D3556D
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642D71

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

Preview Lab → · Contrast checker → · Palette generator →

#642D71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva