#642C76#642C76

#642C76 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.4% C 0.131 H 317.1°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#642C76
RGBrgb(100, 44, 118)
HSLhsl(285, 46%, 32%)
HSVhsv(285, 63%, 46%)
CMYKcmyk(15.3%, 62.7%, 0%, 53.7%)
CIE-LABlab(28.95, 37.68, -31.78)
CIE-LCHlch(28.95, 49.29, 319.86°)
OKLaboklab(40.36% 0.0958 -0.0888)
OKLCHoklch(40.36% 0.131 317.1)
XYZxyz(9.4258, 5.8191, 17.7627)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642C76 #3E762C
analogous
#3F2C76 #642C76 #762C63
triadic
#642C76 #76642C #2C7664
tetradic
#642C76 #763F2C #3E762C #2C6376
square
#642C76 #763F2C #3E762C #2C6376
split-complementary
#642C76 #63762C #2C763F
monochromatic
#180B1D #3E1B49 #642C76 #8A3DA3 #A95BC2

Accessibility & contrast

On white

9.71
#642C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642C76
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642C76#FFFFFF#000000##FFFFFF
##642C761.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174178
Deuteranopia (green-blind)
#2E4674
Tritanopia (blue-blind)
#63384C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #642c76;
/* rgb */ color: rgb(100, 44, 118);
/* oklch */ color: oklch(40.4% 0.131 317.1);
Tailwind
colors: {
  custom: {
    50: '#92699e',
    500: '#642c76',
    950: '#000000',
  },
}
SCSS
$custom: #642c76;
$custom-light: #92699e;
$custom-dark: #000000;
JSON
{
  "hex": "#642c76",
  "rgb": {
    "r": 100,
    "g": 44,
    "b": 118
  },
  "hsl": {
    "h": 285.405,
    "s": 45.679,
    "l": 31.765
  },
  "oklch": {
    "l": 0.40361,
    "c": 0.13062,
    "h": 317.1
  },
  "luminance": 0.05819
}

Semantic roles & 50–950 ramp

primary
#642C76
secondary
#6AA756
accent
#D55272
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642C76

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

Preview Lab → · Contrast checker → · Palette generator →

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