#98228F#98228F

#98228F is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.7% C 0.192 H 331.5°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#98228F
RGBrgb(152, 34, 143)
HSLhsl(305, 63%, 36%)
HSVhsv(305, 78%, 60%)
CMYKcmyk(0%, 77.6%, 5.9%, 40.4%)
CIE-LABlab(37.49, 59.10, -33.27)
CIE-LCHlch(37.49, 67.82, 330.62°)
OKLaboklab(48.66% 0.1691 -0.0917)
OKLCHoklch(48.66% 0.192 331.5)
XYZxyz(18.4789, 9.8042, 26.9004)
Luminance0.0980 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98228F #22982B
analogous
#662298 #98228F #982254
triadic
#98228F #8F9822 #228F98
tetradic
#98228F #986622 #22982B #225498
square
#98228F #986622 #22982B #225498
split-complementary
#98228F #549822 #229866
monochromatic
#340C31 #661760 #98228F #CA2DBE #DA5AD0

Accessibility & contrast

On white

7.09
#98228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#98228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98228F
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98228F#FFFFFF#000000##FFFFFF
##98228F1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174E92
Deuteranopia (green-blind)
#495E8C
Tritanopia (blue-blind)
#9E3157
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #98228f;
/* rgb */ color: rgb(152, 34, 143);
/* oklch */ color: oklch(48.7% 0.192 331.5);
Tailwind
colors: {
  custom: {
    50: '#ba6bb0',
    500: '#98228f',
    950: '#000000',
  },
}
SCSS
$custom: #98228f;
$custom-light: #ba6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#98228f",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 304.576,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.48663,
    "c": 0.19233,
    "h": 331.5
  },
  "luminance": 0.09803
}

Semantic roles & 50–950 ramp

primary
#98228F
secondary
#57BE5F
accent
#E64E41
background
#FBF6FA
surface
#F7ECF5
border
#D0C7CF
text
#120810
muted
#817B7F

Preview Lab

Preview with #98228F

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

Preview Lab → · Contrast checker → · Palette generator →

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