#98228D#98228D

#98228D is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.191 H 332.3°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#98228D
RGBrgb(152, 34, 141)
HSLhsl(306, 63%, 36%)
HSVhsv(306, 78%, 60%)
CMYKcmyk(0%, 77.6%, 7.2%, 40.4%)
CIE-LABlab(37.38, 58.79, -32.22)
CIE-LCHlch(37.38, 67.04, 331.27°)
OKLaboklab(48.55% 0.169 -0.0886)
OKLCHoklch(48.55% 0.191 332.3)
XYZxyz(18.3287, 9.7441, 26.1096)
Luminance0.0974 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98228D #22982D
analogous
#682298 #98228D #982252
triadic
#98228D #8D9822 #228D98
tetradic
#98228D #986822 #22982D #225298
square
#98228D #986822 #22982D #225298
split-complementary
#98228D #529822 #229868
monochromatic
#340C30 #66175F #98228D #CA2DBB #DA5ACE

Accessibility & contrast

On white

7.12
#98228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#98228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98228D
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98228D#FFFFFF#000000##FFFFFF
##98228D1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4D90
Deuteranopia (green-blind)
#4A5E8A
Tritanopia (blue-blind)
#9F3056
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #98228d;
/* rgb */ color: rgb(152, 34, 141);
/* oklch */ color: oklch(48.5% 0.191 332.3);
Tailwind
colors: {
  custom: {
    50: '#ba6baf',
    500: '#98228d',
    950: '#000000',
  },
}
SCSS
$custom: #98228d;
$custom-light: #ba6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#98228d",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 305.593,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.48549,
    "c": 0.19084,
    "h": 332.3
  },
  "luminance": 0.09743
}

Semantic roles & 50–950 ramp

primary
#98228D
secondary
#57BE61
accent
#E65141
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98228D

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

Preview Lab → · Contrast checker → · Palette generator →

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