#98218B#98218B

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

Color values

HEX#98218B
RGBrgb(152, 33, 139)
HSLhsl(307, 64%, 36%)
HSVhsv(307, 78%, 60%)
CMYKcmyk(0%, 78.3%, 8.6%, 40.4%)
CIE-LABlab(37.17, 58.77, -31.33)
CIE-LCHlch(37.17, 66.60, 331.94°)
OKLaboklab(48.36% 0.1698 -0.086)
OKLCHoklch(48.36% 0.19 333.1)
XYZxyz(18.1531, 9.6288, 25.3236)
Luminance0.0963 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98218B #21982E
analogous
#6A2198 #98218B #982150
triadic
#98218B #8B9821 #218B98
tetradic
#98218B #986A21 #21982E #215098
square
#98218B #986A21 #21982E #215098
split-complementary
#98218B #509821 #21986A
monochromatic
#330B2F #66165D #98218B #CA2CB9 #DB59CD

Accessibility & contrast

On white

7.18
#98218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#98218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98218B
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98218B#FFFFFF#000000##FFFFFF
##98218B1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4D8E
Deuteranopia (green-blind)
#4B5D88
Tritanopia (blue-blind)
#9F2E55
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #98218b;
/* rgb */ color: rgb(152, 33, 139);
/* oklch */ color: oklch(48.4% 0.190 333.1);
Tailwind
colors: {
  custom: {
    50: '#ba6bad',
    500: '#98218b',
    950: '#000000',
  },
}
SCSS
$custom: #98218b;
$custom-light: #ba6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#98218b",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 306.555,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48362,
    "c": 0.19036,
    "h": 333.1
  },
  "luminance": 0.09627
}

Semantic roles & 50–950 ramp

primary
#98218B
secondary
#56BF61
accent
#E75340
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98218B

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

Preview Lab → · Contrast checker → · Palette generator →

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