#642873#642873

#642873 is a dark, vivid purple. Relative luminance 0.055; OKLCH L 39.6% C 0.134 H 319.1°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#642873
RGBrgb(100, 40, 115)
HSLhsl(288, 48%, 30%)
HSVhsv(288, 65%, 45%)
CMYKcmyk(13%, 65.2%, 0%, 54.9%)
CIE-LABlab(28.02, 39.06, -31.35)
CIE-LCHlch(28.02, 50.09, 321.25°)
OKLaboklab(39.63% 0.1011 -0.0876)
OKLCHoklch(39.63% 0.134 319.1)
XYZxyz(9.1084, 5.4651, 16.7914)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642873 #377328
analogous
#3E2873 #642873 #73285C
triadic
#642873 #736428 #287364
tetradic
#642873 #733E28 #377328 #285C73
square
#642873 #733E28 #377328 #285C73
split-complementary
#642873 #5C7328 #28733E
monochromatic
#150818 #3D1846 #642873 #8B38A0 #AC52C3

Accessibility & contrast

On white

10.03
#642873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #642873
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642873#FFFFFF#000000##FFFFFF
##6428731.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133E75
Deuteranopia (green-blind)
#2D4471
Tritanopia (blue-blind)
#643549
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #642873;
/* rgb */ color: rgb(100, 40, 115);
/* oklch */ color: oklch(39.6% 0.134 319.1);
Tailwind
colors: {
  custom: {
    50: '#93669c',
    500: '#642873',
    950: '#000000',
  },
}
SCSS
$custom: #642873;
$custom-light: #93669c;
$custom-dark: #000000;
JSON
{
  "hex": "#642873",
  "rgb": {
    "r": 100,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 288,
    "s": 48.387,
    "l": 30.392
  },
  "oklch": {
    "l": 0.39626,
    "c": 0.13374,
    "h": 319.1
  },
  "luminance": 0.05465
}

Semantic roles & 50–950 ramp

primary
#642873
secondary
#62A552
accent
#D8506B
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642873

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

Preview Lab → · Contrast checker → · Palette generator →

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