#98198B#98198B

#98198B is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.8% C 0.197 H 333.1°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#98198B
RGBrgb(152, 25, 139)
HSLhsl(306, 72%, 35%)
HSVhsv(306, 84%, 60%)
CMYKcmyk(0%, 83.6%, 8.6%, 40.4%)
CIE-LABlab(36.44, 60.89, -32.48)
CIE-LCHlch(36.44, 69.01, 331.92°)
OKLaboklab(47.84% 0.176 -0.0893)
OKLCHoklch(47.84% 0.197 333.1)
XYZxyz(17.9569, 9.2363, 25.2582)
Luminance0.0924 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98198B #199826
analogous
#661998 #98198B #98194B
triadic
#98198B #8B9819 #198B98
tetradic
#98198B #986619 #199826 #194B98
square
#98198B #986619 #199826 #194B98
split-complementary
#98198B #4B9819 #199866
monochromatic
#2F082B #63105B #98198B #CD22BB #E14AD2

Accessibility & contrast

On white

7.38
#98198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#98198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98198B
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98198B#FFFFFF#000000##FFFFFF
##98198B1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8E
Deuteranopia (green-blind)
#485C88
Tritanopia (blue-blind)
#9F2953
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #98198b;
/* rgb */ color: rgb(152, 25, 139);
/* oklch */ color: oklch(47.8% 0.197 333.1);
Tailwind
colors: {
  custom: {
    50: '#ba68ad',
    500: '#98198b',
    950: '#000000',
  },
}
SCSS
$custom: #98198b;
$custom-light: #ba68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#98198b",
  "rgb": {
    "r": 152,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 306.142,
    "s": 71.751,
    "l": 34.706
  },
  "oklch": {
    "l": 0.47839,
    "c": 0.19738,
    "h": 333.1
  },
  "luminance": 0.09235
}

Semantic roles & 50–950 ramp

primary
#98198B
secondary
#4AC356
accent
#EE4C39
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98198B

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

Preview Lab → · Contrast checker → · Palette generator →

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