#982157#982157

#982157 is a mid, vivid pink. Relative luminance 0.085; OKLCH L 46.0% C 0.160 H 358.4°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#982157
RGBrgb(152, 33, 87)
HSLhsl(333, 64%, 36%)
HSVhsv(333, 78%, 60%)
CMYKcmyk(0%, 78.3%, 42.8%, 40.4%)
CIE-LABlab(34.91, 52.04, -1.99)
CIE-LCHlch(34.91, 52.08, 357.81°)
OKLaboklab(45.99% 0.16 -0.0046)
OKLCHoklch(45.99% 0.16 358.4)
XYZxyz(15.2142, 8.4532, 9.8454)
Luminance0.0845 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#982157 #219862
analogous
#982193 #982157 #982721
triadic
#982157 #579821 #215798
tetradic
#982157 #939821 #219862 #272198
square
#982157 #939821 #219862 #272198
split-complementary
#982157 #219827 #219398
monochromatic
#330B1D #66163A #982157 #CA2C74 #DB5994

Accessibility & contrast

On white

7.81
#982157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#982157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #982157
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##982157#FFFFFF#000000##FFFFFF
##9821571.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B4458
Deuteranopia (green-blind)
#5C5A54
Tritanopia (blue-blind)
#A50C39
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #982157;
/* rgb */ color: rgb(152, 33, 87);
/* oklch */ color: oklch(46.0% 0.160 358.4);
Tailwind
colors: {
  custom: {
    50: '#bb6986',
    500: '#982157',
    950: '#000000',
  },
}
SCSS
$custom: #982157;
$custom-light: #bb6986;
$custom-dark: #000000;
JSON
{
  "hex": "#982157",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 332.773,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45991,
    "c": 0.16003,
    "h": 358.4
  },
  "luminance": 0.08451
}

Semantic roles & 50–950 ramp

primary
#982157
secondary
#56BF8F
accent
#E79C40
background
#FCF6F8
surface
#F8EBEF
border
#D1C6CA
text
#13070B
muted
#827A7C

Preview Lab

Preview with #982157

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

Preview Lab → · Contrast checker → · Palette generator →

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