#98218A#98218A

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

Color values

HEX#98218A
RGBrgb(152, 33, 138)
HSLhsl(307, 64%, 36%)
HSVhsv(307, 78%, 60%)
CMYKcmyk(0%, 78.3%, 9.2%, 40.4%)
CIE-LABlab(37.11, 58.62, -30.79)
CIE-LCHlch(37.11, 66.21, 332.28°)
OKLaboklab(48.31% 0.1698 -0.0845)
OKLCHoklch(48.31% 0.19 333.5)
XYZxyz(18.0803, 9.5997, 24.9405)
Luminance0.0960 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98218A #21982F
analogous
#6B2198 #98218A #98214F
triadic
#98218A #8A9821 #218A98
tetradic
#98218A #986B21 #21982F #214F98
square
#98218A #986B21 #21982F #214F98
split-complementary
#98218A #4F9821 #21986B
monochromatic
#330B2F #66165C #98218A #CA2CB8 #DB59CC

Accessibility & contrast

On white

7.19
#98218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#98218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98218A
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98218A#FFFFFF#000000##FFFFFF
##98218A1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4C8D
Deuteranopia (green-blind)
#4B5D87
Tritanopia (blue-blind)
#9F2E54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #98218a;
/* rgb */ color: rgb(152, 33, 138);
/* oklch */ color: oklch(48.3% 0.190 333.5);
Tailwind
colors: {
  custom: {
    50: '#ba6bac',
    500: '#98218a',
    950: '#000000',
  },
}
SCSS
$custom: #98218a;
$custom-light: #ba6bac;
$custom-dark: #000000;
JSON
{
  "hex": "#98218a",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 307.059,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48307,
    "c": 0.18964,
    "h": 333.5
  },
  "luminance": 0.09598
}

Semantic roles & 50–950 ramp

primary
#98218A
secondary
#56BF62
accent
#E75440
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98218A

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

Preview Lab → · Contrast checker → · Palette generator →

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