#98227B#98227B

#98227B is a mid, vivid pink. Relative luminance 0.092; OKLCH L 47.6% C 0.178 H 340.0°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#98227B
RGBrgb(152, 34, 123)
HSLhsl(315, 63%, 36%)
HSVhsv(315, 78%, 60%)
CMYKcmyk(0%, 77.6%, 19.1%, 40.4%)
CIE-LABlab(36.46, 56.11, -22.51)
CIE-LCHlch(36.46, 60.46, 338.14°)
OKLaboklab(47.59% 0.1675 -0.0608)
OKLCHoklch(47.59% 0.178 340)
XYZxyz(17.0966, 9.2512, 19.6203)
Luminance0.0925 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98227B #22983F
analogous
#7A2298 #98227B #982240
triadic
#98227B #7B9822 #227B98
tetradic
#98227B #987A22 #22983F #224098
square
#98227B #987A22 #22983F #224098
split-complementary
#98227B #409822 #22987A
monochromatic
#340C2A #661753 #98227B #CA2DA3 #DA5ABB

Accessibility & contrast

On white

7.37
#98227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#98227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98227B
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98227B#FFFFFF#000000##FFFFFF
##98227B1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4A7D
Deuteranopia (green-blind)
#525C78
Tritanopia (blue-blind)
#A1264C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #98227b;
/* rgb */ color: rgb(152, 34, 123);
/* oklch */ color: oklch(47.6% 0.178 340.0);
Tailwind
colors: {
  custom: {
    50: '#ba6aa1',
    500: '#98227b',
    950: '#000000',
  },
}
SCSS
$custom: #98227b;
$custom-light: #ba6aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#98227b",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 314.746,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47593,
    "c": 0.17821,
    "h": 340
  },
  "luminance": 0.0925
}

Semantic roles & 50–950 ramp

primary
#98227B
secondary
#57BE71
accent
#E66A41
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #98227B

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

Preview Lab → · Contrast checker → · Palette generator →

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