#98228B#98228B

#98228B is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.4% C 0.189 H 333.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#98228B
RGBrgb(152, 34, 139)
HSLhsl(307, 63%, 36%)
HSVhsv(307, 78%, 60%)
CMYKcmyk(0%, 77.6%, 8.6%, 40.4%)
CIE-LABlab(37.27, 58.47, -31.16)
CIE-LCHlch(37.27, 66.26, 331.95°)
OKLaboklab(48.44% 0.1689 -0.0856)
OKLCHoklch(48.44% 0.189 333.1)
XYZxyz(18.1812, 9.6851, 25.3329)
Luminance0.0968 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98228B #22982F
analogous
#6A2298 #98228B #982250
triadic
#98228B #8B9822 #228B98
tetradic
#98228B #986A22 #22982F #225098
square
#98228B #986A22 #22982F #225098
split-complementary
#98228B #509822 #22986A
monochromatic
#340C30 #66175D #98228B #CA2DB9 #DA5ACC

Accessibility & contrast

On white

7.15
#98228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#98228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98228B
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98228B#FFFFFF#000000##FFFFFF
##98228B1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4D8E
Deuteranopia (green-blind)
#4B5E88
Tritanopia (blue-blind)
#9F2F55
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #98228b;
/* rgb */ color: rgb(152, 34, 139);
/* oklch */ color: oklch(48.4% 0.189 333.1);
Tailwind
colors: {
  custom: {
    50: '#ba6bad',
    500: '#98228b',
    950: '#000000',
  },
}
SCSS
$custom: #98228b;
$custom-light: #ba6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#98228b",
  "rgb": {
    "r": 152,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 306.61,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.48437,
    "c": 0.18938,
    "h": 333.1
  },
  "luminance": 0.09684
}

Semantic roles & 50–950 ramp

primary
#98228B
secondary
#57BE63
accent
#E65441
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98228B

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

Preview Lab → · Contrast checker → · Palette generator →

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