#9D2E8A#9D2E8A

#9D2E8A is a mid, vivid pink. Relative luminance 0.110; OKLCH L 50.2% C 0.178 H 335.6°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#9D2E8A
RGBrgb(157, 46, 138)
HSLhsl(310, 55%, 40%)
HSVhsv(310, 71%, 62%)
CMYKcmyk(0%, 70.7%, 12.1%, 38.4%)
CIE-LABlab(39.51, 55.47, -26.97)
CIE-LCHlch(39.51, 61.68, 334.07°)
OKLaboklab(50.2% 0.1621 -0.0735)
OKLCHoklch(50.2% 0.178 335.6)
XYZxyz(19.4693, 10.9588, 25.1297)
Luminance0.1096 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2E8A #2E9D41
analogous
#782E9D #9D2E8A #9D2E53
triadic
#9D2E8A #8A9D2E #2E8A9D
tetradic
#9D2E8A #9D782E #2E9D41 #2E539D
square
#9D2E8A #9D782E #2E9D41 #2E539D
split-complementary
#9D2E8A #539D2E #2E9D78
monochromatic
#3E1237 #6E2060 #9D2E8A #C741B0 #D570C4

Accessibility & contrast

On white

6.58
#9D2E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#9D2E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2E8A
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2E8A#FFFFFF#000000##FFFFFF
##9D2E8A1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F528D
Deuteranopia (green-blind)
#546387
Tritanopia (blue-blind)
#A53658
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d2e8a;
/* rgb */ color: rgb(157, 46, 138);
/* oklch */ color: oklch(50.2% 0.178 335.6);
Tailwind
colors: {
  custom: {
    50: '#bd71ac',
    500: '#9d2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #9d2e8a;
$custom-light: #bd71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2e8a",
  "rgb": {
    "r": 157,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 310.27,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50199,
    "c": 0.17801,
    "h": 335.6
  },
  "luminance": 0.10957
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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