#98218E#98218E

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

Color values

HEX#98218E
RGBrgb(152, 33, 142)
HSLhsl(305, 64%, 36%)
HSVhsv(305, 78%, 60%)
CMYKcmyk(0%, 78.3%, 6.6%, 40.4%)
CIE-LABlab(37.33, 59.24, -32.91)
CIE-LCHlch(37.33, 67.77, 330.95°)
OKLaboklab(48.53% 0.1699 -0.0906)
OKLCHoklch(48.53% 0.193 331.9)
XYZxyz(18.3753, 9.7176, 26.4939)
Luminance0.0972 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#98218E #21982B
analogous
#672198 #98218E #982153
triadic
#98218E #8E9821 #218E98
tetradic
#98218E #986721 #21982B #215398
square
#98218E #986721 #21982B #215398
split-complementary
#98218E #539821 #219867
monochromatic
#330B30 #66165F #98218E #CA2CBD #DB59D0

Accessibility & contrast

On white

7.14
#98218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #98218E
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##98218E#FFFFFF#000000##FFFFFF
##98218E1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174D91
Deuteranopia (green-blind)
#495E8B
Tritanopia (blue-blind)
#9F3057
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #98218e;
/* rgb */ color: rgb(152, 33, 142);
/* oklch */ color: oklch(48.5% 0.193 331.9);
Tailwind
colors: {
  custom: {
    50: '#ba6baf',
    500: '#98218e',
    950: '#000000',
  },
}
SCSS
$custom: #98218e;
$custom-light: #ba6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#98218e",
  "rgb": {
    "r": 152,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 305.042,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.48532,
    "c": 0.19256,
    "h": 331.9
  },
  "luminance": 0.09716
}

Semantic roles & 50–950 ramp

primary
#98218E
secondary
#56BF5F
accent
#E74E40
background
#FBF6FA
surface
#F7ECF4
border
#D0C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #98218E

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

Preview Lab → · Contrast checker → · Palette generator →

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