#9D2E97#9D2E97

#9D2E97 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.9% C 0.188 H 330.2°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9D2E97
RGBrgb(157, 46, 151)
HSLhsl(303, 55%, 40%)
HSVhsv(303, 71%, 62%)
CMYKcmyk(0%, 70.7%, 3.8%, 38.4%)
CIE-LABlab(40.18, 57.55, -33.84)
CIE-LCHlch(40.18, 66.76, 329.54°)
OKLaboklab(50.9% 0.1631 -0.0933)
OKLCHoklch(50.9% 0.188 330.2)
XYZxyz(20.4674, 11.3580, 30.3865)
Luminance0.1136 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2E97 #2E9D34
analogous
#6B2E9D #9D2E97 #9D2E60
triadic
#9D2E97 #979D2E #2E979D
tetradic
#9D2E97 #9D6B2E #2E9D34 #2E609D
square
#9D2E97 #9D6B2E #2E9D34 #2E609D
split-complementary
#9D2E97 #609D2E #2E9D6B
monochromatic
#3E123C #6E2069 #9D2E97 #C741C0 #D570D0

Accessibility & contrast

On white

6.42
#9D2E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9D2E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2E97
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2E97#FFFFFF#000000##FFFFFF
##9D2E971.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559A
Deuteranopia (green-blind)
#4E6494
Tritanopia (blue-blind)
#A33C5F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9d2e97;
/* rgb */ color: rgb(157, 46, 151);
/* oklch */ color: oklch(50.9% 0.188 330.2);
Tailwind
colors: {
  custom: {
    50: '#bd71b6',
    500: '#9d2e97',
    950: '#000000',
  },
}
SCSS
$custom: #9d2e97;
$custom-light: #bd71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2e97",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 303.243,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50896,
    "c": 0.18793,
    "h": 330.2
  },
  "luminance": 0.11356
}

Semantic roles & 50–950 ramp

primary
#9D2E97
secondary
#6ABD6F
accent
#DE524A
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9D2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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