#9D1F98#9D1F98

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

Color values

HEX#9D1F98
RGBrgb(157, 31, 152)
HSLhsl(302, 67%, 37%)
HSVhsv(302, 80%, 62%)
CMYKcmyk(0%, 80.3%, 3.2%, 38.4%)
CIE-LABlab(38.58, 62.44, -36.98)
CIE-LCHlch(38.58, 72.57, 329.37°)
OKLaboklab(49.77% 0.1767 -0.1023)
OKLCHoklch(49.77% 0.204 329.9)
XYZxyz(20.0620, 10.4167, 30.6537)
Luminance0.1042 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1F98 #1F9D24
analogous
#631F9D #9D1F98 #9D1F59
triadic
#9D1F98 #989D1F #1F989D
tetradic
#9D1F98 #9D631F #1F9D24 #1F599D
square
#9D1F98 #9D631F #1F9D24 #1F599D
split-complementary
#9D1F98 #599D1F #1F9D63
monochromatic
#370B35 #6A1567 #9D1F98 #D029C9 #DE58D9

Accessibility & contrast

On white

6.81
#9D1F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9D1F98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D1F98
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1F98#FFFFFF#000000##FFFFFF
##9D1F981.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d1f98;
/* rgb */ color: rgb(157, 31, 152);
/* oklch */ color: oklch(49.8% 0.204 329.9);
Tailwind
colors: {
  custom: {
    50: '#be6bb7',
    500: '#9d1f98',
    950: '#000000',
  },
}
SCSS
$custom: #9d1f98;
$custom-light: #be6bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1f98",
  "rgb": {
    "r": 157,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 302.381,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.49771,
    "c": 0.20419,
    "h": 329.9
  },
  "luminance": 0.10415
}

Semantic roles & 50–950 ramp

primary
#9D1F98
secondary
#56C25A
accent
#EA453E
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#130811
muted
#827A80

Preview Lab

Preview with #9D1F98

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

Preview Lab → · Contrast checker → · Palette generator →

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