#642C71#642C71

#642C71 is a dark, vivid purple. Relative luminance 0.057; OKLCH L 40.0% C 0.125 H 319.7°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#642C71
RGBrgb(100, 44, 113)
HSLhsl(289, 44%, 31%)
HSVhsv(289, 61%, 44%)
CMYKcmyk(11.5%, 61.1%, 0%, 55.7%)
CIE-LABlab(28.65, 36.58, -29.08)
CIE-LCHlch(28.65, 46.73, 321.52°)
OKLaboklab(40.05% 0.0955 -0.081)
OKLCHoklch(40.05% 0.125 319.7)
XYZxyz(9.1365, 5.7033, 16.2392)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C71 #39712C
analogous
#412C71 #642C71 #712C5B
triadic
#642C71 #71642C #2C7164
tetradic
#642C71 #71412C #39712C #2C5B71
square
#642C71 #71412C #39712C #2C5B71
split-complementary
#642C71 #5B712C #2C7141
monochromatic
#160A19 #3D1B45 #642C71 #8B3D9D #AB59BE

Accessibility & contrast

On white

9.81
#642C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#642C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642C71
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C71#FFFFFF#000000##FFFFFF
##642C711.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #642c71;
/* rgb */ color: rgb(100, 44, 113);
/* oklch */ color: oklch(40.0% 0.125 319.7);
Tailwind
colors: {
  custom: {
    50: '#92689a',
    500: '#642c71',
    950: '#000000',
  },
}
SCSS
$custom: #642c71;
$custom-light: #92689a;
$custom-dark: #000000;
JSON
{
  "hex": "#642c71",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 288.696,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40046,
    "c": 0.12523,
    "h": 319.7
  },
  "luminance": 0.05703
}

Semantic roles & 50–950 ramp

primary
#642C71
secondary
#65A356
accent
#D4546C
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642C71

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

Preview Lab → · Contrast checker → · Palette generator →

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