#9D2D97#9D2D97

#9D2D97 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.8% C 0.189 H 330.2°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#9D2D97
RGBrgb(157, 45, 151)
HSLhsl(303, 55%, 40%)
HSVhsv(303, 71%, 62%)
CMYKcmyk(0%, 71.3%, 3.8%, 38.4%)
CIE-LABlab(40.05, 57.91, -34.04)
CIE-LCHlch(40.05, 67.18, 329.55°)
OKLaboklab(50.8% 0.1642 -0.0939)
OKLCHoklch(50.8% 0.189 330.2)
XYZxyz(20.4288, 11.2808, 30.3736)
Luminance0.1128 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2D97 #2D9D33
analogous
#6B2D9D #9D2D97 #9D2D5F
triadic
#9D2D97 #979D2D #2D979D
tetradic
#9D2D97 #9D6B2D #2D9D33 #2D5F9D
square
#9D2D97 #9D6B2D #2D9D33 #2D5F9D
split-complementary
#9D2D97 #5F9D2D #2D9D6B
monochromatic
#3E123C #6D1F69 #9D2D97 #C83FC1 #D66FD0

Accessibility & contrast

On white

6.45
#9D2D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#9D2D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2D97
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2D97#FFFFFF#000000##FFFFFF
##9D2D971.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559A
Deuteranopia (green-blind)
#4E6494
Tritanopia (blue-blind)
#A33B5F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9d2d97;
/* rgb */ color: rgb(157, 45, 151);
/* oklch */ color: oklch(50.8% 0.189 330.2);
Tailwind
colors: {
  custom: {
    50: '#bd71b6',
    500: '#9d2d97',
    950: '#000000',
  },
}
SCSS
$custom: #9d2d97;
$custom-light: #bd71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2d97",
  "rgb": {
    "r": 157,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 303.214,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50804,
    "c": 0.18912,
    "h": 330.2
  },
  "luminance": 0.11279
}

Semantic roles & 50–950 ramp

primary
#9D2D97
secondary
#69BD6D
accent
#DF5149
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9D2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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