#98227D#98227D

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

Color values

HEX#98227D
RGBrgb(152, 34, 125)
HSLhsl(314, 63%, 36%)
HSVhsv(314, 78%, 60%)
CMYKcmyk(0%, 77.6%, 17.8%, 40.4%)
CIE-LABlab(36.56, 56.39, -23.61)
CIE-LCHlch(36.56, 61.14, 337.28°)
OKLaboklab(47.69% 0.1678 -0.0639)
OKLCHoklch(47.69% 0.18 339.1)
XYZxyz(17.2230, 9.3018, 20.2864)
Luminance0.0930 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98227D #22983D
analogous
#782298 #98227D #982242
triadic
#98227D #7D9822 #227D98
tetradic
#98227D #987822 #22983D #224298
square
#98227D #987822 #22983D #224298
split-complementary
#98227D #429822 #229878
monochromatic
#340C2B #661754 #98227D #CA2DA6 #DA5ABD

Accessibility & contrast

On white

7.34
#98227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#98227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98227D
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98227D#FFFFFF#000000##FFFFFF
##98227D1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A7F
Deuteranopia (green-blind)
#515D7A
Tritanopia (blue-blind)
#A1274D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #98227d;
/* rgb */ color: rgb(152, 34, 125);
/* oklch */ color: oklch(47.7% 0.180 339.1);
Tailwind
colors: {
  custom: {
    50: '#ba6ba3',
    500: '#98227d',
    950: '#000000',
  },
}
SCSS
$custom: #98227d;
$custom-light: #ba6ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#98227d",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 313.729,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47693,
    "c": 0.17954,
    "h": 339.1
  },
  "luminance": 0.093
}

Semantic roles & 50–950 ramp

primary
#98227D
secondary
#57BE6F
accent
#E66741
background
#FBF6FA
surface
#F7ECF3
border
#D0C7CD
text
#12070F
muted
#817A7F

Preview Lab

Preview with #98227D

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

Preview Lab → · Contrast checker → · Palette generator →

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