#98227A#98227A

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

Color values

HEX#98227A
RGBrgb(152, 34, 122)
HSLhsl(315, 63%, 36%)
HSVhsv(315, 78%, 60%)
CMYKcmyk(0%, 77.6%, 19.7%, 40.4%)
CIE-LABlab(36.42, 55.97, -21.96)
CIE-LCHlch(36.42, 60.12, 338.58°)
OKLaboklab(47.54% 0.1674 -0.0592)
OKLCHoklch(47.54% 0.178 340.5)
XYZxyz(17.0343, 9.2263, 19.2923)
Luminance0.0922 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98227A #229840
analogous
#7B2298 #98227A #98223F
triadic
#98227A #7A9822 #227A98
tetradic
#98227A #987B22 #229840 #223F98
square
#98227A #987B22 #229840 #223F98
split-complementary
#98227A #3F9822 #22987B
monochromatic
#340C2A #661752 #98227A #CA2DA2 #DA5ABA

Accessibility & contrast

On white

7.38
#98227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #98227A
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98227A#FFFFFF#000000##FFFFFF
##98227A1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #98227a;
/* rgb */ color: rgb(152, 34, 122);
/* oklch */ color: oklch(47.5% 0.178 340.5);
Tailwind
colors: {
  custom: {
    50: '#ba6aa0',
    500: '#98227a',
    950: '#000000',
  },
}
SCSS
$custom: #98227a;
$custom-light: #ba6aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#98227a",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 315.254,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47544,
    "c": 0.17755,
    "h": 340.5
  },
  "luminance": 0.09225
}

Semantic roles & 50–950 ramp

primary
#98227A
secondary
#57BE72
accent
#E66B41
background
#FBF6F9
surface
#F7ECF2
border
#D0C7CC
text
#12070F
muted
#817A7E

Preview Lab

Preview with #98227A

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

Preview Lab → · Contrast checker → · Palette generator →

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