#642879#642879

#642879 is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.0% C 0.140 H 316.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#642879
RGBrgb(100, 40, 121)
HSLhsl(284, 50%, 32%)
HSVhsv(284, 67%, 47%)
CMYKcmyk(17.4%, 66.9%, 0%, 52.5%)
CIE-LABlab(28.40, 40.38, -34.56)
CIE-LCHlch(28.40, 53.14, 319.44°)
OKLaboklab(40.02% 0.101 -0.0969)
OKLCHoklch(40.02% 0.14 316.2)
XYZxyz(9.4650, 5.6077, 18.6693)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642879 #3D7928
analogous
#3B2879 #642879 #792866
triadic
#642879 #796428 #287964
tetradic
#642879 #793B28 #3D7928 #286679
square
#642879 #793B28 #3D7928 #286679
split-complementary
#642879 #667928 #28793B
monochromatic
#180A1D #3E194B #642879 #8A37A7 #A955C7

Accessibility & contrast

On white

9.90
#642879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#642879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642879
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642879#FFFFFF#000000##FFFFFF
##6428791.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083F7B
Deuteranopia (green-blind)
#284577
Tritanopia (blue-blind)
#63374D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #642879;
/* rgb */ color: rgb(100, 40, 121);
/* oklch */ color: oklch(40.0% 0.140 316.2);
Tailwind
colors: {
  custom: {
    50: '#9366a0',
    500: '#642879',
    950: '#000000',
  },
}
SCSS
$custom: #642879;
$custom-light: #9366a0;
$custom-dark: #000000;
JSON
{
  "hex": "#642879",
  "rgb": {
    "r": 100,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 284.444,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40023,
    "c": 0.14002,
    "h": 316.2
  },
  "luminance": 0.05607
}

Semantic roles & 50–950 ramp

primary
#642879
secondary
#69AB52
accent
#DA4E72
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D060F
muted
#7E7A7E

Preview Lab

Preview with #642879

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

Preview Lab → · Contrast checker → · Palette generator →

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