#9D2098#9D2098

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

Color values

HEX#9D2098
RGBrgb(157, 32, 152)
HSLhsl(302, 66%, 37%)
HSVhsv(302, 80%, 62%)
CMYKcmyk(0%, 79.6%, 3.2%, 38.4%)
CIE-LABlab(38.67, 62.18, -36.83)
CIE-LCHlch(38.67, 72.27, 329.36°)
OKLaboklab(49.84% 0.176 -0.1018)
OKLCHoklch(49.84% 0.203 329.9)
XYZxyz(20.0885, 10.4697, 30.6625)
Luminance0.1047 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2098 #209D25
analogous
#64209D #9D2098 #9D205A
triadic
#9D2098 #989D20 #20989D
tetradic
#9D2098 #9D6420 #209D25 #205A9D
square
#9D2098 #9D6420 #209D25 #205A9D
split-complementary
#9D2098 #5A9D20 #209D64
monochromatic
#370B36 #6A1667 #9D2098 #D02AC9 #DD5AD8

Accessibility & contrast

On white

6.79
#9D2098 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#9D2098 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2098
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2098#FFFFFF#000000##FFFFFF
##9D20981.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07509B
Deuteranopia (green-blind)
#486195
Tritanopia (blue-blind)
#A3335C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d2098;
/* rgb */ color: rgb(157, 32, 152);
/* oklch */ color: oklch(49.8% 0.203 329.9);
Tailwind
colors: {
  custom: {
    50: '#be6cb7',
    500: '#9d2098',
    950: '#000000',
  },
}
SCSS
$custom: #9d2098;
$custom-light: #be6cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2098",
  "rgb": {
    "r": 157,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 302.4,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.49837,
    "c": 0.20332,
    "h": 329.9
  },
  "luminance": 0.10468
}

Semantic roles & 50–950 ramp

primary
#9D2098
secondary
#57C15C
accent
#E9463F
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D2098

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

Preview Lab → · Contrast checker → · Palette generator →

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