#98227E#98227E

#98227E is a mid, vivid pink. Relative luminance 0.093; OKLCH L 47.7% C 0.180 H 338.7°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#98227E
RGBrgb(152, 34, 126)
HSLhsl(313, 63%, 36%)
HSVhsv(313, 78%, 60%)
CMYKcmyk(0%, 77.6%, 17.1%, 40.4%)
CIE-LABlab(36.61, 56.53, -24.16)
CIE-LCHlch(36.61, 61.48, 336.86°)
OKLaboklab(47.74% 0.1679 -0.0655)
OKLCHoklch(47.74% 0.18 338.7)
XYZxyz(17.2872, 9.3275, 20.6246)
Luminance0.0933 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98227E #22983C
analogous
#772298 #98227E #982243
triadic
#98227E #7E9822 #227E98
tetradic
#98227E #987722 #22983C #224398
square
#98227E #987722 #22983C #224398
split-complementary
#98227E #439822 #229877
monochromatic
#340C2B #661755 #98227E #CA2DA7 #DA5ABE

Accessibility & contrast

On white

7.33
#98227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#98227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98227E
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98227E#FFFFFF#000000##FFFFFF
##98227E1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A80
Deuteranopia (green-blind)
#515D7B
Tritanopia (blue-blind)
#A1284E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #98227e;
/* rgb */ color: rgb(152, 34, 126);
/* oklch */ color: oklch(47.7% 0.180 338.7);
Tailwind
colors: {
  custom: {
    50: '#ba6ba3',
    500: '#98227e',
    950: '#000000',
  },
}
SCSS
$custom: #98227e;
$custom-light: #ba6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#98227e",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 313.22,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47744,
    "c": 0.18021,
    "h": 338.7
  },
  "luminance": 0.09326
}

Semantic roles & 50–950 ramp

primary
#98227E
secondary
#57BE6E
accent
#E66641
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #98227E

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

Preview Lab → · Contrast checker → · Palette generator →

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