#98218F#98218F

#98218F is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.6% C 0.193 H 331.5°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#98218F
RGBrgb(152, 33, 143)
HSLhsl(305, 64%, 36%)
HSVhsv(305, 78%, 60%)
CMYKcmyk(0%, 78.3%, 5.9%, 40.4%)
CIE-LABlab(37.39, 59.40, -33.44)
CIE-LCHlch(37.39, 68.16, 330.62°)
OKLaboklab(48.59% 0.1699 -0.0921)
OKLCHoklch(48.59% 0.193 331.5)
XYZxyz(18.4507, 9.7478, 26.8910)
Luminance0.0975 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98218F #21982A
analogous
#662198 #98218F #982154
triadic
#98218F #8F9821 #218F98
tetradic
#98218F #986621 #21982A #215498
square
#98218F #986621 #21982A #215498
split-complementary
#98218F #549821 #219866
monochromatic
#330B30 #661660 #98218F #CA2CBE #DB59D1

Accessibility & contrast

On white

7.12
#98218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#98218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #98218F
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98218F#FFFFFF#000000##FFFFFF
##98218F1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154D92
Deuteranopia (green-blind)
#495E8C
Tritanopia (blue-blind)
#9E3057
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #98218f;
/* rgb */ color: rgb(152, 33, 143);
/* oklch */ color: oklch(48.6% 0.193 331.5);
Tailwind
colors: {
  custom: {
    50: '#ba6bb0',
    500: '#98218f',
    950: '#000000',
  },
}
SCSS
$custom: #98218f;
$custom-light: #ba6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#98218f",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 304.538,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48589,
    "c": 0.19329,
    "h": 331.5
  },
  "luminance": 0.09746
}

Semantic roles & 50–950 ramp

primary
#98218F
secondary
#56BF5E
accent
#E74D40
background
#FBF6FA
surface
#F7ECF5
border
#D0C7CF
text
#120710
muted
#817A7F

Preview Lab

Preview with #98218F

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

Preview Lab → · Contrast checker → · Palette generator →

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