#98277B#98277B

#98277B is a mid, vivid pink. Relative luminance 0.096; OKLCH L 48.0% C 0.173 H 340.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#98277B
RGBrgb(152, 39, 123)
HSLhsl(315, 59%, 37%)
HSVhsv(315, 74%, 60%)
CMYKcmyk(0%, 74.3%, 19.1%, 40.4%)
CIE-LABlab(37.04, 54.48, -21.62)
CIE-LCHlch(37.04, 58.61, 338.35°)
OKLaboklab(48.01% 0.1626 -0.0583)
OKLCHoklch(48.01% 0.173 340.3)
XYZxyz(17.2500, 9.5582, 19.6715)
Luminance0.0956 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98277B #279844
analogous
#7C2798 #98277B #982743
triadic
#98277B #7B9827 #277B98
tetradic
#98277B #987C27 #279844 #274398
square
#98277B #987C27 #279844 #274398
split-complementary
#98277B #439827 #27987C
monochromatic
#370E2C #671B54 #98277B #C933A2 #D763B9

Accessibility & contrast

On white

7.21
#98277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#98277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98277B
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98277B#FFFFFF#000000##FFFFFF
##98277B1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4C7D
Deuteranopia (green-blind)
#545E78
Tritanopia (blue-blind)
#A12A4E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #98277b;
/* rgb */ color: rgb(152, 39, 123);
/* oklch */ color: oklch(48.0% 0.173 340.3);
Tailwind
colors: {
  custom: {
    50: '#ba6ca1',
    500: '#98277b',
    950: '#000000',
  },
}
SCSS
$custom: #98277b;
$custom-light: #ba6ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#98277b",
  "rgb": {
    "r": 152,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 315.398,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48008,
    "c": 0.17271,
    "h": 340.3
  },
  "luminance": 0.09556
}

Semantic roles & 50–950 ramp

primary
#98277B
secondary
#5EBC77
accent
#E26E45
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12080F
muted
#817B7E

Preview Lab

Preview with #98277B

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

Preview Lab → · Contrast checker → · Palette generator →

#98277B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva