#842074#842074

#842074 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.8% C 0.163 H 335.4°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#842074
RGBrgb(132, 32, 116)
HSLhsl(310, 61%, 32%)
HSVhsv(310, 76%, 52%)
CMYKcmyk(0%, 75.8%, 12.1%, 48.2%)
CIE-LABlab(32.26, 50.82, -24.94)
CIE-LCHlch(32.26, 56.61, 333.86°)
OKLaboklab(43.77% 0.1485 -0.0681)
OKLCHoklch(43.77% 0.163 335.4)
XYZxyz(13.1848, 7.2007, 17.2151)
Luminance0.0720 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842074 #208430
analogous
#622084 #842074 #842042
triadic
#842074 #748420 #207484
tetradic
#842074 #846220 #208430 #204284
square
#842074 #846220 #208430 #204284
split-complementary
#842074 #428420 #208462
monochromatic
#21081D #531449 #842074 #B52C9F #D34BBE

Accessibility & contrast

On white

8.61
#842074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#842074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842074
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842074#FFFFFF#000000##FFFFFF
##8420741.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204276
Deuteranopia (green-blind)
#445172
Tritanopia (blue-blind)
#8B2848
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #842074;
/* rgb */ color: rgb(132, 32, 116);
/* oklch */ color: oklch(43.8% 0.163 335.4);
Tailwind
colors: {
  custom: {
    50: '#ab669c',
    500: '#842074',
    950: '#000000',
  },
}
SCSS
$custom: #842074;
$custom-light: #ab669c;
$custom-dark: #000000;
JSON
{
  "hex": "#842074",
  "rgb": {
    "r": 132,
    "g": 32,
    "b": 116
  },
  "hsl": {
    "h": 309.6,
    "s": 60.976,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43765,
    "c": 0.16338,
    "h": 335.4
  },
  "luminance": 0.072
}

Semantic roles & 50–950 ramp

primary
#842074
secondary
#4AB65B
accent
#E45D44
background
#FAF6F9
surface
#F5EBF2
border
#CFC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #842074

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

Preview Lab → · Contrast checker → · Palette generator →

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