#642A71#642A71

#642A71 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 39.8% C 0.128 H 319.9°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#642A71
RGBrgb(100, 42, 113)
HSLhsl(289, 46%, 30%)
HSVhsv(289, 63%, 44%)
CMYKcmyk(11.5%, 62.8%, 0%, 55.7%)
CIE-LABlab(28.27, 37.62, -29.69)
CIE-LCHlch(28.27, 47.92, 321.72°)
OKLaboklab(39.77% 0.0983 -0.0827)
OKLCHoklch(39.77% 0.128 319.9)
XYZxyz(9.0638, 5.5579, 16.2149)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A71 #37712A
analogous
#402A71 #642A71 #712A5A
triadic
#642A71 #71642A #2A7164
tetradic
#642A71 #71402A #37712A #2A5A71
square
#642A71 #71402A #37712A #2A5A71
split-complementary
#642A71 #5A712A #2A7140
monochromatic
#150918 #3D1944 #642A71 #8B3B9E #AC55C0

Accessibility & contrast

On white

9.95
#642A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#642A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A71
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A71#FFFFFF#000000##FFFFFF
##642A711.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193F73
Deuteranopia (green-blind)
#30456F
Tritanopia (blue-blind)
#643549
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #642a71;
/* rgb */ color: rgb(100, 42, 113);
/* oklch */ color: oklch(39.8% 0.128 319.9);
Tailwind
colors: {
  custom: {
    50: '#92679a',
    500: '#642a71',
    950: '#000000',
  },
}
SCSS
$custom: #642a71;
$custom-light: #92679a;
$custom-dark: #000000;
JSON
{
  "hex": "#642a71",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 289.014,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.39767,
    "c": 0.12849,
    "h": 319.9
  },
  "luminance": 0.05558
}

Semantic roles & 50–950 ramp

primary
#642A71
secondary
#62A354
accent
#D5526A
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642A71

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

Preview Lab → · Contrast checker → · Palette generator →

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