#982871#982871

#982871 is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.6% C 0.165 H 345.2°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#982871
RGBrgb(152, 40, 113)
HSLhsl(321, 58%, 38%)
HSVhsv(321, 74%, 60%)
CMYKcmyk(0%, 73.7%, 25.7%, 40.4%)
CIE-LABlab(36.72, 52.75, -15.85)
CIE-LCHlch(36.72, 55.08, 343.28°)
OKLaboklab(47.63% 0.1596 -0.0421)
OKLCHoklch(47.63% 0.165 345.2)
XYZxyz(16.6890, 9.3870, 16.5526)
Luminance0.0939 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982871 #28984F
analogous
#872898 #982871 #982839
triadic
#982871 #719828 #287198
tetradic
#982871 #988728 #28984F #283998
square
#982871 #988728 #28984F #283998
split-complementary
#982871 #399828 #289887
monochromatic
#370F29 #681B4D #982871 #C83595 #D664AF

Accessibility & contrast

On white

7.30
#982871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#982871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #982871
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982871#FFFFFF#000000##FFFFFF
##9828711.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364A73
Deuteranopia (green-blind)
#575D6E
Tritanopia (blue-blind)
#A22649
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #982871;
/* rgb */ color: rgb(152, 40, 113);
/* oklch */ color: oklch(47.6% 0.165 345.2);
Tailwind
colors: {
  custom: {
    50: '#ba6d9a',
    500: '#982871',
    950: '#000000',
  },
}
SCSS
$custom: #982871;
$custom-light: #ba6d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#982871",
  "rgb": {
    "r": 152,
    "g": 40,
    "b": 113
  },
  "hsl": {
    "h": 320.893,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.47632,
    "c": 0.16511,
    "h": 345.2
  },
  "luminance": 0.09385
}

Semantic roles & 50–950 ramp

primary
#982871
secondary
#60BC80
accent
#E27C46
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12080E
muted
#817B7E

Preview Lab

Preview with #982871

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

Preview Lab → · Contrast checker → · Palette generator →

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