#642478#642478

#642478 is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.5% C 0.145 H 317.1°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#642478
RGBrgb(100, 36, 120)
HSLhsl(286, 54%, 31%)
HSVhsv(286, 70%, 47%)
CMYKcmyk(16.7%, 70%, 0%, 52.9%)
CIE-LABlab(27.65, 42.07, -35.13)
CIE-LCHlch(27.65, 54.80, 320.14°)
OKLaboklab(39.46% 0.106 -0.0986)
OKLCHoklch(39.46% 0.145 317.1)
XYZxyz(9.2761, 5.3275, 18.3053)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642478 #387824
analogous
#3A2478 #642478 #782462
triadic
#642478 #786424 #247864
tetradic
#642478 #783A24 #387824 #246278
square
#642478 #783A24 #387824 #246278
split-complementary
#642478 #627824 #24783A
monochromatic
#16081A #3D1649 #642478 #8B32A7 #AC4DCA

Accessibility & contrast

On white

10.17
#642478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#642478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642478
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642478#FFFFFF#000000##FFFFFF
##6424781.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7A
Deuteranopia (green-blind)
#264376
Tritanopia (blue-blind)
#63344B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #642478;
/* rgb */ color: rgb(100, 36, 120);
/* oklch */ color: oklch(39.5% 0.145 317.1);
Tailwind
colors: {
  custom: {
    50: '#93649f',
    500: '#642478',
    950: '#000000',
  },
}
SCSS
$custom: #642478;
$custom-light: #93649f;
$custom-dark: #000000;
JSON
{
  "hex": "#642478",
  "rgb": {
    "r": 100,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 285.714,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3946,
    "c": 0.14477,
    "h": 317.1
  },
  "luminance": 0.05327
}

Semantic roles & 50–950 ramp

primary
#642478
secondary
#63AB4D
accent
#DD4B6D
background
#F9F6F9
surface
#F2EBF2
border
#CCC6CC
text
#0D060E
muted
#7E7A7E

Preview Lab

Preview with #642478

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

Preview Lab → · Contrast checker → · Palette generator →

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