#9D2E8D#9D2E8D

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

Color values

HEX#9D2E8D
RGBrgb(157, 46, 141)
HSLhsl(309, 55%, 40%)
HSVhsv(309, 71%, 62%)
CMYKcmyk(0%, 70.7%, 10.2%, 38.4%)
CIE-LABlab(39.66, 55.94, -28.57)
CIE-LCHlch(39.66, 62.81, 332.94°)
OKLaboklab(50.35% 0.1624 -0.0781)
OKLCHoklch(50.35% 0.18 334.3)
XYZxyz(19.6895, 11.0468, 26.2894)
Luminance0.1105 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2E8D #2E9D3E
analogous
#762E9D #9D2E8D #9D2E55
triadic
#9D2E8D #8D9D2E #2E8D9D
tetradic
#9D2E8D #9D762E #2E9D3E #2E559D
square
#9D2E8D #9D762E #2E9D3E #2E559D
split-complementary
#9D2E8D #559D2E #2E9D76
monochromatic
#3E1238 #6E2062 #9D2E8D #C741B4 #D570C7

Accessibility & contrast

On white

6.54
#9D2E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#9D2E8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2E8D
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2E8D#FFFFFF#000000##FFFFFF
##9D2E8D1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5390
Deuteranopia (green-blind)
#53638A
Tritanopia (blue-blind)
#A4375A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d2e8d;
/* rgb */ color: rgb(157, 46, 141);
/* oklch */ color: oklch(50.4% 0.180 334.3);
Tailwind
colors: {
  custom: {
    50: '#bd71ae',
    500: '#9d2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #9d2e8d;
$custom-light: #bd71ae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2e8d",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 308.649,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50354,
    "c": 0.18024,
    "h": 334.3
  },
  "luminance": 0.11045
}

Semantic roles & 50–950 ramp

primary
#9D2E8D
secondary
#6ABD76
accent
#DE5F4A
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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