#9D1E8A#9D1E8A

#9D1E8A is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.9% C 0.195 H 335.3°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#9D1E8A
RGBrgb(157, 30, 138)
HSLhsl(309, 68%, 37%)
HSVhsv(309, 81%, 62%)
CMYKcmyk(0%, 80.9%, 12.1%, 38.4%)
CIE-LABlab(37.72, 60.57, -29.78)
CIE-LCHlch(37.72, 67.49, 333.82°)
OKLaboklab(48.91% 0.1772 -0.0814)
OKLCHoklch(48.91% 0.195 335.3)
XYZxyz(18.9566, 9.9334, 24.9588)
Luminance0.0993 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D1E8A #1E9D31
analogous
#711E9D #9D1E8A #9D1E4B
triadic
#9D1E8A #8A9D1E #1E8A9D
tetradic
#9D1E8A #9D711E #1E9D31 #1E4B9D
square
#9D1E8A #9D711E #1E9D31 #1E4B9D
split-complementary
#9D1E8A #4B9D1E #1E9D71
monochromatic
#360A30 #6A145D #9D1E8A #D028B7 #DF57CA

Accessibility & contrast

On white

7.03
#9D1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#9D1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9D1E8A
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D1E8A#FFFFFF#000000##FFFFFF
##9D1E8A1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8D
Deuteranopia (green-blind)
#4E5F87
Tritanopia (blue-blind)
#A52A54
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #9d1e8a;
/* rgb */ color: rgb(157, 30, 138);
/* oklch */ color: oklch(48.9% 0.195 335.3);
Tailwind
colors: {
  custom: {
    50: '#be6aac',
    500: '#9d1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #9d1e8a;
$custom-light: #be6aac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d1e8a",
  "rgb": {
    "r": 157,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 308.976,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.48911,
    "c": 0.19506,
    "h": 335.3
  },
  "luminance": 0.09932
}

Semantic roles & 50–950 ramp

primary
#9D1E8A
secondary
#54C265
accent
#EB573D
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#130710
muted
#827A7F

Preview Lab

Preview with #9D1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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