#9D2198#9D2198

#9D2198 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.9% C 0.202 H 329.9°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#9D2198
RGBrgb(157, 33, 152)
HSLhsl(302, 65%, 37%)
HSVhsv(302, 79%, 62%)
CMYKcmyk(0%, 79%, 3.2%, 38.4%)
CIE-LABlab(38.77, 61.90, -36.68)
CIE-LCHlch(38.77, 71.95, 329.35°)
OKLaboklab(49.9% 0.1752 -0.1014)
OKLCHoklch(49.9% 0.202 329.9)
XYZxyz(20.1159, 10.5244, 30.6716)
Luminance0.1052 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2198 #219D26
analogous
#64219D #9D2198 #9D215A
triadic
#9D2198 #989D21 #21989D
tetradic
#9D2198 #9D6421 #219D26 #215A9D
square
#9D2198 #9D6421 #219D26 #215A9D
split-complementary
#9D2198 #5A9D21 #219D64
monochromatic
#380C36 #6A1667 #9D2198 #D02CC9 #DD5CD7

Accessibility & contrast

On white

6.76
#9D2198 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9D2198 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2198
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2198#FFFFFF#000000##FFFFFF
##9D21981.006.763.106.76
#FFFFFF6.761.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A519B
Deuteranopia (green-blind)
#486195
Tritanopia (blue-blind)
#A3345C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d2198;
/* rgb */ color: rgb(157, 33, 152);
/* oklch */ color: oklch(49.9% 0.202 329.9);
Tailwind
colors: {
  custom: {
    50: '#be6cb7',
    500: '#9d2198',
    950: '#000000',
  },
}
SCSS
$custom: #9d2198;
$custom-light: #be6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2198",
  "rgb": {
    "r": 157,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 302.419,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.49904,
    "c": 0.20242,
    "h": 329.9
  },
  "luminance": 0.10523
}

Semantic roles & 50–950 ramp

primary
#9D2198
secondary
#59C15D
accent
#E84640
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D2198

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

Preview Lab → · Contrast checker → · Palette generator →

#9D2198 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva