#642871#642871

#642871 is a dark, vivid purple. Relative luminance 0.054; OKLCH L 39.5% C 0.132 H 320.1°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#642871
RGBrgb(100, 40, 113)
HSLhsl(289, 48%, 30%)
HSVhsv(289, 65%, 44%)
CMYKcmyk(11.5%, 64.6%, 0%, 55.7%)
CIE-LABlab(27.90, 38.63, -30.27)
CIE-LCHlch(27.90, 49.08, 321.92°)
OKLaboklab(39.5% 0.101 -0.0844)
OKLCHoklch(39.5% 0.132 320.1)
XYZxyz(8.9946, 5.4196, 16.1919)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642871 #357128
analogous
#402871 #642871 #712859
triadic
#642871 #716428 #287164
tetradic
#642871 #714028 #357128 #285971
square
#642871 #714028 #357128 #285971
split-complementary
#642871 #597128 #287140
monochromatic
#140817 #3C1844 #642871 #8C389E #AE52C2

Accessibility & contrast

On white

10.08
#642871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#642871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642871
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642871#FFFFFF#000000##FFFFFF
##6428711.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E73
Deuteranopia (green-blind)
#2E446F
Tritanopia (blue-blind)
#653448
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #642871;
/* rgb */ color: rgb(100, 40, 113);
/* oklch */ color: oklch(39.5% 0.132 320.1);
Tailwind
colors: {
  custom: {
    50: '#92669a',
    500: '#642871',
    950: '#000000',
  },
}
SCSS
$custom: #642871;
$custom-light: #92669a;
$custom-dark: #000000;
JSON
{
  "hex": "#642871",
  "rgb": {
    "r": 100,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 289.315,
    "s": 47.712,
    "l": 30
  },
  "oklch": {
    "l": 0.39498,
    "c": 0.13166,
    "h": 320.1
  },
  "luminance": 0.05419
}

Semantic roles & 50–950 ramp

primary
#642871
secondary
#60A352
accent
#D75068
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642871

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

Preview Lab → · Contrast checker → · Palette generator →

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