#98227F#98227F

#98227F is a mid, vivid pink. Relative luminance 0.094; OKLCH L 47.8% C 0.181 H 338.2°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#98227F
RGBrgb(152, 34, 127)
HSLhsl(313, 63%, 36%)
HSVhsv(313, 78%, 60%)
CMYKcmyk(0%, 77.6%, 16.4%, 40.4%)
CIE-LABlab(36.66, 56.68, -24.71)
CIE-LCHlch(36.66, 61.83, 336.45°)
OKLaboklab(47.8% 0.168 -0.067)
OKLCHoklch(47.8% 0.181 338.2)
XYZxyz(17.3521, 9.3534, 20.9661)
Luminance0.0935 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98227F #22983B
analogous
#762298 #98227F #982244
triadic
#98227F #7F9822 #227F98
tetradic
#98227F #987622 #22983B #224498
square
#98227F #987622 #22983B #224498
split-complementary
#98227F #449822 #229876
monochromatic
#340C2B #661755 #98227F #CA2DA9 #DA5ABF

Accessibility & contrast

On white

7.32
#98227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #98227F
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98227F#FFFFFF#000000##FFFFFF
##98227F1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284B81
Deuteranopia (green-blind)
#505D7C
Tritanopia (blue-blind)
#A1284E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #98227f;
/* rgb */ color: rgb(152, 34, 127);
/* oklch */ color: oklch(47.8% 0.181 338.2);
Tailwind
colors: {
  custom: {
    50: '#ba6ba4',
    500: '#98227f',
    950: '#000000',
  },
}
SCSS
$custom: #98227f;
$custom-light: #ba6ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#98227f",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 312.712,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47795,
    "c": 0.1809,
    "h": 338.2
  },
  "luminance": 0.09352
}

Semantic roles & 50–950 ramp

primary
#98227F
secondary
#57BE6D
accent
#E66441
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#12070F
muted
#817A7F

Preview Lab

Preview with #98227F

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

Preview Lab → · Contrast checker → · Palette generator →

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