#9D2E8B#9D2E8B

#9D2E8B is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.2% C 0.179 H 335.2°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#9D2E8B
RGBrgb(157, 46, 139)
HSLhsl(310, 55%, 40%)
HSVhsv(310, 71%, 62%)
CMYKcmyk(0%, 70.7%, 11.5%, 38.4%)
CIE-LABlab(39.56, 55.62, -27.51)
CIE-LCHlch(39.56, 62.05, 333.69°)
OKLaboklab(50.25% 0.1622 -0.0751)
OKLCHoklch(50.25% 0.179 335.2)
XYZxyz(19.5420, 10.9879, 25.5127)
Luminance0.1099 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2E8B #2E9D40
analogous
#782E9D #9D2E8B #9D2E53
triadic
#9D2E8B #8B9D2E #2E8B9D
tetradic
#9D2E8B #9D782E #2E9D40 #2E539D
square
#9D2E8B #9D782E #2E9D40 #2E539D
split-complementary
#9D2E8B #539D2E #2E9D78
monochromatic
#3E1237 #6E2061 #9D2E8B #C741B2 #D570C5

Accessibility & contrast

On white

6.57
#9D2E8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#9D2E8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2E8B
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2E8B#FFFFFF#000000##FFFFFF
##9D2E8B1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E538E
Deuteranopia (green-blind)
#546388
Tritanopia (blue-blind)
#A53659
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d2e8b;
/* rgb */ color: rgb(157, 46, 139);
/* oklch */ color: oklch(50.2% 0.179 335.2);
Tailwind
colors: {
  custom: {
    50: '#bd71ad',
    500: '#9d2e8b',
    950: '#000000',
  },
}
SCSS
$custom: #9d2e8b;
$custom-light: #bd71ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2e8b",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 139
  },
  "hsl": {
    "h": 309.73,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5025,
    "c": 0.17875,
    "h": 335.2
  },
  "luminance": 0.10986
}

Semantic roles & 50–950 ramp

primary
#9D2E8B
secondary
#6ABD78
accent
#DE624A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D2E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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