#98218C#98218C

#98218C is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.4% C 0.191 H 332.7°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#98218C
RGBrgb(152, 33, 140)
HSLhsl(306, 64%, 36%)
HSVhsv(306, 78%, 60%)
CMYKcmyk(0%, 78.3%, 7.9%, 40.4%)
CIE-LABlab(37.22, 58.93, -31.86)
CIE-LCHlch(37.22, 66.99, 331.60°)
OKLaboklab(48.42% 0.1698 -0.0876)
OKLCHoklch(48.42% 0.191 332.7)
XYZxyz(18.2265, 9.6581, 25.7101)
Luminance0.0966 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98218C #21982D
analogous
#692198 #98218C #982151
triadic
#98218C #8C9821 #218C98
tetradic
#98218C #986921 #21982D #215198
square
#98218C #986921 #21982D #215198
split-complementary
#98218C #519821 #219869
monochromatic
#330B2F #66165E #98218C #CA2CBA #DB59CE

Accessibility & contrast

On white

7.16
#98218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #98218C
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98218C#FFFFFF#000000##FFFFFF
##98218C1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #98218c;
/* rgb */ color: rgb(152, 33, 140);
/* oklch */ color: oklch(48.4% 0.191 332.7);
Tailwind
colors: {
  custom: {
    50: '#ba6bae',
    500: '#98218c',
    950: '#000000',
  },
}
SCSS
$custom: #98218c;
$custom-light: #ba6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#98218c",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 306.05,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48419,
    "c": 0.19109,
    "h": 332.7
  },
  "luminance": 0.09657
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #98218C

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

Preview Lab → · Contrast checker → · Palette generator →

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