#642872#642872

#642872 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 39.6% C 0.133 H 319.6°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#642872
RGBrgb(100, 40, 114)
HSLhsl(289, 48%, 30%)
HSVhsv(289, 65%, 45%)
CMYKcmyk(12.3%, 64.9%, 0%, 55.3%)
CIE-LABlab(27.96, 38.85, -30.81)
CIE-LCHlch(27.96, 49.59, 321.58°)
OKLaboklab(39.56% 0.1011 -0.086)
OKLCHoklch(39.56% 0.133 319.6)
XYZxyz(9.0512, 5.4422, 16.4900)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642872 #367228
analogous
#3F2872 #642872 #72285B
triadic
#642872 #726428 #287264
tetradic
#642872 #723F28 #367228 #285B72
square
#642872 #723F28 #367228 #285B72
split-complementary
#642872 #5B7228 #28723F
monochromatic
#150817 #3C1845 #642872 #8C389F #AD52C2

Accessibility & contrast

On white

10.06
#642872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#642872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642872
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642872#FFFFFF#000000##FFFFFF
##6428721.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153E74
Deuteranopia (green-blind)
#2D4470
Tritanopia (blue-blind)
#643449
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #642872;
/* rgb */ color: rgb(100, 40, 114);
/* oklch */ color: oklch(39.6% 0.133 319.6);
Tailwind
colors: {
  custom: {
    50: '#93669b',
    500: '#642872',
    950: '#000000',
  },
}
SCSS
$custom: #642872;
$custom-light: #93669b;
$custom-dark: #000000;
JSON
{
  "hex": "#642872",
  "rgb": {
    "r": 100,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 288.649,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.39562,
    "c": 0.1327,
    "h": 319.6
  },
  "luminance": 0.05442
}

Semantic roles & 50–950 ramp

primary
#642872
secondary
#61A452
accent
#D8506A
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642872

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

Preview Lab → · Contrast checker → · Palette generator →

#642872 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva