#642A74#642A74

#642A74 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.0% C 0.132 H 318.4°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#642A74
RGBrgb(100, 42, 116)
HSLhsl(287, 47%, 31%)
HSVhsv(287, 64%, 45%)
CMYKcmyk(13.8%, 63.8%, 0%, 54.5%)
CIE-LABlab(28.45, 38.27, -31.31)
CIE-LCHlch(28.45, 49.45, 320.72°)
OKLaboklab(39.96% 0.0984 -0.0874)
OKLCHoklch(39.96% 0.132 318.4)
XYZxyz(9.2355, 5.6266, 17.1192)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642A74 #3A742A
analogous
#3F2A74 #642A74 #742A5F
triadic
#642A74 #74642A #2A7464
tetradic
#642A74 #743F2A #3A742A #2A5F74
square
#642A74 #743F2A #3A742A #2A5F74
split-complementary
#642A74 #5F742A #2A743F
monochromatic
#17091A #3D1A47 #642A74 #8B3AA1 #AB56C2

Accessibility & contrast

On white

9.88
#642A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#642A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642A74
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642A74#FFFFFF#000000##FFFFFF
##642A741.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163F76
Deuteranopia (green-blind)
#2E4572
Tritanopia (blue-blind)
#64364B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #642a74;
/* rgb */ color: rgb(100, 42, 116);
/* oklch */ color: oklch(40.0% 0.132 318.4);
Tailwind
colors: {
  custom: {
    50: '#92679c',
    500: '#642a74',
    950: '#000000',
  },
}
SCSS
$custom: #642a74;
$custom-light: #92679c;
$custom-dark: #000000;
JSON
{
  "hex": "#642a74",
  "rgb": {
    "r": 100,
    "g": 42,
    "b": 116
  },
  "hsl": {
    "h": 287.027,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.39957,
    "c": 0.13166,
    "h": 318.4
  },
  "luminance": 0.05626
}

Semantic roles & 50–950 ramp

primary
#642A74
secondary
#66A654
accent
#D6516E
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642A74

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

Preview Lab → · Contrast checker → · Palette generator →

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