#842271#842271

#842271 is a dark, vivid pink. Relative luminance 0.072; OKLCH L 43.8% C 0.159 H 336.9°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#842271
RGBrgb(132, 34, 113)
HSLhsl(312, 59%, 33%)
HSVhsv(312, 74%, 52%)
CMYKcmyk(0%, 74.2%, 14.4%, 48.2%)
CIE-LABlab(32.35, 49.65, -22.89)
CIE-LCHlch(32.35, 54.67, 335.25°)
OKLaboklab(43.78% 0.1461 -0.0623)
OKLCHoklch(43.78% 0.159 336.9)
XYZxyz(13.0686, 7.2430, 16.3294)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#842271 #228435
analogous
#662284 #842271 #842240
triadic
#842271 #718422 #227184
tetradic
#842271 #846622 #228435 #224084
square
#842271 #846622 #228435 #224084
split-complementary
#842271 #408422 #228466
monochromatic
#23091E #531547 #842271 #B52F9B #D24FB8

Accessibility & contrast

On white

8.58
#842271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#842271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #842271
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##842271#FFFFFF#000000##FFFFFF
##8422711.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254373
Deuteranopia (green-blind)
#46516F
Tritanopia (blue-blind)
#8B2847
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #842271;
/* rgb */ color: rgb(132, 34, 113);
/* oklch */ color: oklch(43.8% 0.159 336.9);
Tailwind
colors: {
  custom: {
    50: '#ab679a',
    500: '#842271',
    950: '#000000',
  },
}
SCSS
$custom: #842271;
$custom-light: #ab679a;
$custom-dark: #000000;
JSON
{
  "hex": "#842271",
  "rgb": {
    "r": 132,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 311.633,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43783,
    "c": 0.15881,
    "h": 336.9
  },
  "luminance": 0.07242
}

Semantic roles & 50–950 ramp

primary
#842271
secondary
#4DB561
accent
#E26446
background
#FAF6F9
surface
#F5EBF2
border
#CFC6CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #842271

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

Preview Lab → · Contrast checker → · Palette generator →

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