#642F79#642F79

#642F79 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.0% C 0.129 H 315.3°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#642F79
RGBrgb(100, 47, 121)
HSLhsl(283, 44%, 33%)
HSVhsv(283, 61%, 47%)
CMYKcmyk(17.4%, 61.2%, 0%, 52.5%)
CIE-LABlab(29.72, 36.77, -32.45)
CIE-LCHlch(29.72, 49.04, 318.57°)
OKLaboklab(40.98% 0.0917 -0.0908)
OKLCHoklch(40.98% 0.129 315.3)
XYZxyz(9.7227, 6.1231, 18.7552)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642F79 #44792F
analogous
#3F2F79 #642F79 #792F69
triadic
#642F79 #79642F #2F7964
tetradic
#642F79 #793F2F #44792F #2F6979
square
#642F79 #793F2F #44792F #2F6979
split-complementary
#642F79 #69792F #2F793F
monochromatic
#1B0D21 #401E4D #642F79 #8840A5 #A661C2

Accessibility & contrast

On white

9.44
#642F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#642F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642F79
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642F79#FFFFFF#000000##FFFFFF
##642F791.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A437B
Deuteranopia (green-blind)
#2E4777
Tritanopia (blue-blind)
#633C4F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #642f79;
/* rgb */ color: rgb(100, 47, 121);
/* oklch */ color: oklch(41.0% 0.129 315.3);
Tailwind
colors: {
  custom: {
    50: '#926ba0',
    500: '#642f79',
    950: '#000000',
  },
}
SCSS
$custom: #642f79;
$custom-light: #926ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#642f79",
  "rgb": {
    "r": 100,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 282.973,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.40981,
    "c": 0.12907,
    "h": 315.3
  },
  "luminance": 0.06123
}

Semantic roles & 50–950 ramp

primary
#642F79
secondary
#71A85B
accent
#D45478
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D070F
muted
#7E7A7E

Preview Lab

Preview with #642F79

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

Preview Lab → · Contrast checker → · Palette generator →

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