#842478#842478

#842478 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.3% C 0.162 H 333.5°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#842478
RGBrgb(132, 36, 120)
HSLhsl(308, 57%, 33%)
HSVhsv(308, 73%, 52%)
CMYKcmyk(0%, 72.7%, 9.1%, 48.2%)
CIE-LABlab(32.97, 50.03, -26.35)
CIE-LCHlch(32.97, 56.54, 332.22°)
OKLaboklab(44.35% 0.1447 -0.0722)
OKLCHoklch(44.35% 0.162 333.5)
XYZxyz(13.5368, 7.5245, 18.5051)
Luminance0.0752 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842478 #248430
analogous
#602484 #842478 #842448
triadic
#842478 #788424 #247884
tetradic
#842478 #846024 #248430 #244884
square
#842478 #846024 #248430 #244884
split-complementary
#842478 #488424 #248460
monochromatic
#240A21 #54174C #842478 #B431A4 #D052C0

Accessibility & contrast

On white

8.38
#842478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#842478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842478
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842478#FFFFFF#000000##FFFFFF
##8424781.008.382.508.38
#FFFFFF8.381.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21457A
Deuteranopia (green-blind)
#445276
Tritanopia (blue-blind)
#8A2D4B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #842478;
/* rgb */ color: rgb(132, 36, 120);
/* oklch */ color: oklch(44.3% 0.162 333.5);
Tailwind
colors: {
  custom: {
    50: '#ab689f',
    500: '#842478',
    950: '#000000',
  },
}
SCSS
$custom: #842478;
$custom-light: #ab689f;
$custom-dark: #000000;
JSON
{
  "hex": "#842478",
  "rgb": {
    "r": 132,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 307.5,
    "s": 57.143,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44347,
    "c": 0.16166,
    "h": 333.5
  },
  "luminance": 0.07523
}

Semantic roles & 50–950 ramp

primary
#842478
secondary
#50B45C
accent
#E05B47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842478

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

Preview Lab → · Contrast checker → · Palette generator →

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