#9D2F8D#9D2F8D

#9D2F8D is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.4% C 0.179 H 334.3°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#9D2F8D
RGBrgb(157, 47, 141)
HSLhsl(309, 54%, 40%)
HSVhsv(309, 70%, 62%)
CMYKcmyk(0%, 70.1%, 10.2%, 38.4%)
CIE-LABlab(39.79, 55.56, -28.37)
CIE-LCHlch(39.79, 62.39, 332.95°)
OKLaboklab(50.45% 0.1613 -0.0775)
OKLCHoklch(50.45% 0.179 334.3)
XYZxyz(19.7290, 11.1259, 26.3026)
Luminance0.1112 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2F8D #2F9D3F
analogous
#762F9D #9D2F8D #9D2F56
triadic
#9D2F8D #8D9D2F #2F8D9D
tetradic
#9D2F8D #9D762F #2F9D3F #2F569D
square
#9D2F8D #9D762F #2F9D3F #2F569D
split-complementary
#9D2F8D #569D2F #2F9D76
monochromatic
#3F1338 #6E2163 #9D2F8D #C743B3 #D572C6

Accessibility & contrast

On white

6.51
#9D2F8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#9D2F8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2F8D
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2F8D#FFFFFF#000000##FFFFFF
##9D2F8D1.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5390
Deuteranopia (green-blind)
#54648A
Tritanopia (blue-blind)
#A4385A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #9d2f8d;
/* rgb */ color: rgb(157, 47, 141);
/* oklch */ color: oklch(50.4% 0.179 334.3);
Tailwind
colors: {
  custom: {
    50: '#bd71ae',
    500: '#9d2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #9d2f8d;
$custom-light: #bd71ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2f8d",
  "rgb": {
    "r": 157,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 308.727,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.5045,
    "c": 0.17899,
    "h": 334.3
  },
  "luminance": 0.11124
}

Semantic roles & 50–950 ramp

primary
#9D2F8D
secondary
#6BBC77
accent
#DD604B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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