#642D73#642D73

#642D73 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.3% C 0.126 H 318.5°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#642D73
RGBrgb(100, 45, 115)
HSLhsl(287, 44%, 31%)
HSVhsv(287, 61%, 45%)
CMYKcmyk(13%, 60.9%, 0%, 54.9%)
CIE-LABlab(28.96, 36.49, -29.85)
CIE-LCHlch(28.96, 47.15, 320.71°)
OKLaboklab(40.31% 0.0942 -0.0832)
OKLCHoklch(40.31% 0.126 318.5)
XYZxyz(9.2880, 5.8243, 16.8513)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642D73 #3C732D
analogous
#412D73 #642D73 #732D5F
triadic
#642D73 #73642D #2D7364
tetradic
#642D73 #73412D #3C732D #2D5F73
square
#642D73 #73412D #3C732D #2D5F73
split-complementary
#642D73 #5F732D #2D7341
monochromatic
#180B1B #3E1C47 #642D73 #8A3E9F #AA5BBF

Accessibility & contrast

On white

9.70
#642D73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642D73
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642D73#FFFFFF#000000##FFFFFF
##642D731.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4175
Deuteranopia (green-blind)
#314671
Tritanopia (blue-blind)
#64384B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #642d73;
/* rgb */ color: rgb(100, 45, 115);
/* oklch */ color: oklch(40.3% 0.126 318.5);
Tailwind
colors: {
  custom: {
    50: '#92699b',
    500: '#642d73',
    950: '#000000',
  },
}
SCSS
$custom: #642d73;
$custom-light: #92699b;
$custom-dark: #000000;
JSON
{
  "hex": "#642d73",
  "rgb": {
    "r": 100,
    "g": 45,
    "b": 115
  },
  "hsl": {
    "h": 287.143,
    "s": 43.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40313,
    "c": 0.12574,
    "h": 318.5
  },
  "luminance": 0.05824
}

Semantic roles & 50–950 ramp

primary
#642D73
secondary
#68A457
accent
#D35470
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642D73

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

Preview Lab → · Contrast checker → · Palette generator →

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