#982A7E#982A7E

#982A7E is a mid, vivid pink. Relative luminance 0.098; OKLCH L 48.4% C 0.171 H 339.0°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#982A7E
RGBrgb(152, 42, 126)
HSLhsl(314, 57%, 38%)
HSVhsv(314, 72%, 60%)
CMYKcmyk(0%, 72.4%, 17.1%, 40.4%)
CIE-LABlab(37.55, 53.85, -22.69)
CIE-LCHlch(37.55, 58.44, 337.16°)
OKLaboklab(48.43% 0.1598 -0.0614)
OKLCHoklch(48.43% 0.171 339)
XYZxyz(17.5432, 9.8393, 20.7099)
Luminance0.0984 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982A7E #2A9844
analogous
#7B2A98 #982A7E #982A47
triadic
#982A7E #7E982A #2A7E98
tetradic
#982A7E #987B2A #2A9844 #2A4798
square
#982A7E #987B2A #2A9844 #2A4798
split-complementary
#982A7E #47982A #2A987B
monochromatic
#38102F #681D56 #982A7E #C837A6 #D567BB

Accessibility & contrast

On white

7.08
#982A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#982A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #982A7E
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982A7E#FFFFFF#000000##FFFFFF
##982A7E1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304D80
Deuteranopia (green-blind)
#545F7B
Tritanopia (blue-blind)
#A12E50
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #982a7e;
/* rgb */ color: rgb(152, 42, 126);
/* oklch */ color: oklch(48.4% 0.171 339.0);
Tailwind
colors: {
  custom: {
    50: '#ba6ea3',
    500: '#982a7e',
    950: '#000000',
  },
}
SCSS
$custom: #982a7e;
$custom-light: #ba6ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#982a7e",
  "rgb": {
    "r": 152,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 314.182,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.48427,
    "c": 0.17118,
    "h": 339
  },
  "luminance": 0.09838
}

Semantic roles & 50–950 ramp

primary
#982A7E
secondary
#62BB77
accent
#E06C48
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#12080F
muted
#817B7F

Preview Lab

Preview with #982A7E

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

Preview Lab → · Contrast checker → · Palette generator →

#982A7E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva