#842270#842270

#842270 is a dark, vivid pink. Relative luminance 0.072; OKLCH L 43.7% C 0.158 H 337.4°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#842270
RGBrgb(132, 34, 112)
HSLhsl(312, 59%, 33%)
HSVhsv(312, 74%, 52%)
CMYKcmyk(0%, 74.2%, 15.2%, 48.2%)
CIE-LABlab(32.30, 49.49, -22.33)
CIE-LCHlch(32.30, 54.30, 335.71°)
OKLaboklab(43.73% 0.146 -0.0607)
OKLCHoklch(43.73% 0.158 337.4)
XYZxyz(13.0126, 7.2206, 16.0345)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842270 #228436
analogous
#672284 #842270 #84223F
triadic
#842270 #708422 #227084
tetradic
#842270 #846722 #228436 #223F84
square
#842270 #846722 #228436 #223F84
split-complementary
#842270 #3F8422 #228467
monochromatic
#23091D #531547 #842270 #B52F99 #D24FB7

Accessibility & contrast

On white

8.59
#842270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #842270
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842270#FFFFFF#000000##FFFFFF
##8422701.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254272
Deuteranopia (green-blind)
#46516E
Tritanopia (blue-blind)
#8B2746
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #842270;
/* rgb */ color: rgb(132, 34, 112);
/* oklch */ color: oklch(43.7% 0.158 337.4);
Tailwind
colors: {
  custom: {
    50: '#ab6799',
    500: '#842270',
    950: '#000000',
  },
}
SCSS
$custom: #842270;
$custom-light: #ab6799;
$custom-dark: #000000;
JSON
{
  "hex": "#842270",
  "rgb": {
    "r": 132,
    "g": 34,
    "b": 112
  },
  "hsl": {
    "h": 312.245,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43731,
    "c": 0.15809,
    "h": 337.4
  },
  "luminance": 0.07219
}

Semantic roles & 50–950 ramp

primary
#842270
secondary
#4DB562
accent
#E26646
background
#FAF6F9
surface
#F5EBF2
border
#CFC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842270

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

Preview Lab → · Contrast checker → · Palette generator →

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