#642E71#642E71

#642E71 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 40.3% C 0.122 H 319.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#642E71
RGBrgb(100, 46, 113)
HSLhsl(288, 42%, 31%)
HSVhsv(288, 59%, 44%)
CMYKcmyk(11.5%, 59.3%, 0%, 55.7%)
CIE-LABlab(29.05, 35.51, -28.45)
CIE-LCHlch(29.05, 45.51, 321.30°)
OKLaboklab(40.33% 0.0927 -0.0792)
OKLCHoklch(40.33% 0.122 319.5)
XYZxyz(9.2128, 5.8560, 16.2646)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642E71 #3B712E
analogous
#422E71 #642E71 #712E5C
triadic
#642E71 #71642E #2E7164
tetradic
#642E71 #71422E #3B712E #2E5C71
square
#642E71 #71422E #3B712E #2E5C71
split-complementary
#642E71 #5C712E #2E7142
monochromatic
#170B1A #3E1C46 #642E71 #8A409C #AA5DBD

Accessibility & contrast

On white

9.67
#642E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#642E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642E71
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642E71#FFFFFF#000000##FFFFFF
##642E711.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204173
Deuteranopia (green-blind)
#33466F
Tritanopia (blue-blind)
#64384B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #642e71;
/* rgb */ color: rgb(100, 46, 113);
/* oklch */ color: oklch(40.3% 0.122 319.5);
Tailwind
colors: {
  custom: {
    50: '#926a9a',
    500: '#642e71',
    950: '#000000',
  },
}
SCSS
$custom: #642e71;
$custom-light: #926a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#642e71",
  "rgb": {
    "r": 100,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 288.358,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40334,
    "c": 0.12189,
    "h": 319.5
  },
  "luminance": 0.05856
}

Semantic roles & 50–950 ramp

primary
#642E71
secondary
#67A258
accent
#D2566E
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642E71

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

Preview Lab → · Contrast checker → · Palette generator →

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