#98218D#98218D

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

Color values

HEX#98218D
RGBrgb(152, 33, 141)
HSLhsl(306, 64%, 36%)
HSVhsv(306, 78%, 60%)
CMYKcmyk(0%, 78.3%, 7.2%, 40.4%)
CIE-LABlab(37.28, 59.08, -32.38)
CIE-LCHlch(37.28, 67.38, 331.27°)
OKLaboklab(48.48% 0.1699 -0.0891)
OKLCHoklch(48.48% 0.192 332.3)
XYZxyz(18.3005, 9.6878, 26.1002)
Luminance0.0969 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98218D #21982C
analogous
#682198 #98218D #982152
triadic
#98218D #8D9821 #218D98
tetradic
#98218D #986821 #21982C #215298
square
#98218D #986821 #21982C #215298
split-complementary
#98218D #529821 #219868
monochromatic
#330B30 #66165E #98218D #CA2CBC #DB59CF

Accessibility & contrast

On white

7.15
#98218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#98218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98218D
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98218D#FFFFFF#000000##FFFFFF
##98218D1.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)
#184D90
Deuteranopia (green-blind)
#4A5E8A
Tritanopia (blue-blind)
#9F2F56
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #98218d;
/* rgb */ color: rgb(152, 33, 141);
/* oklch */ color: oklch(48.5% 0.192 332.3);
Tailwind
colors: {
  custom: {
    50: '#ba6baf',
    500: '#98218d',
    950: '#000000',
  },
}
SCSS
$custom: #98218d;
$custom-light: #ba6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#98218d",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 305.546,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48475,
    "c": 0.19183,
    "h": 332.3
  },
  "luminance": 0.09686
}

Semantic roles & 50–950 ramp

primary
#98218D
secondary
#56BF60
accent
#E75040
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98218D

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

Preview Lab → · Contrast checker → · Palette generator →

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