#842874#842874

#842874 is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.5% C 0.153 H 335.6°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#842874
RGBrgb(132, 40, 116)
HSLhsl(310, 53%, 34%)
HSVhsv(310, 70%, 52%)
CMYKcmyk(0%, 69.7%, 12.1%, 48.2%)
CIE-LABlab(33.32, 47.83, -23.28)
CIE-LCHlch(33.32, 53.19, 334.04°)
OKLaboklab(44.53% 0.1397 -0.0634)
OKLCHoklch(44.53% 0.153 335.6)
XYZxyz(13.4271, 7.6852, 17.2958)
Luminance0.0768 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842874 #288438
analogous
#662884 #842874 #842846
triadic
#842874 #748428 #287484
tetradic
#842874 #846628 #288438 #284684
square
#842874 #846628 #288438 #284684
split-complementary
#842874 #468428 #288466
monochromatic
#260C21 #551A4B #842874 #B3369D #CD5AB9

Accessibility & contrast

On white

8.28
#842874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#842874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842874
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842874#FFFFFF#000000##FFFFFF
##8428741.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294676
Deuteranopia (green-blind)
#475372
Tritanopia (blue-blind)
#8B2E4A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #842874;
/* rgb */ color: rgb(132, 40, 116);
/* oklch */ color: oklch(44.5% 0.153 335.6);
Tailwind
colors: {
  custom: {
    50: '#ab6a9c',
    500: '#842874',
    950: '#000000',
  },
}
SCSS
$custom: #842874;
$custom-light: #ab6a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#842874",
  "rgb": {
    "r": 132,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 310.435,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44531,
    "c": 0.15339,
    "h": 335.6
  },
  "luminance": 0.07684
}

Semantic roles & 50–950 ramp

primary
#842874
secondary
#56B266
accent
#DD644B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842874

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

Preview Lab → · Contrast checker → · Palette generator →

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