#9D2B8B#9D2B8B

#9D2B8B is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.0% C 0.182 H 335.1°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#9D2B8B
RGBrgb(157, 43, 139)
HSLhsl(309, 57%, 39%)
HSVhsv(309, 73%, 62%)
CMYKcmyk(0%, 72.6%, 11.5%, 38.4%)
CIE-LABlab(39.18, 56.71, -28.11)
CIE-LCHlch(39.18, 63.29, 333.63°)
OKLaboklab(49.97% 0.1654 -0.0767)
OKLCHoklch(49.97% 0.182 335.1)
XYZxyz(19.4289, 10.7616, 25.4750)
Luminance0.1076 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2B8B #2B9D3D
analogous
#762B9D #9D2B8B #9D2B52
triadic
#9D2B8B #8B9D2B #2B8B9D
tetradic
#9D2B8B #9D762B #2B9D3D #2B529D
square
#9D2B8B #9D762B #2B9D3D #2B529D
split-complementary
#9D2B8B #529D2B #2B9D76
monochromatic
#3D1136 #6D1E60 #9D2B8B #CA3CB3 #D76CC6

Accessibility & contrast

On white

6.66
#9D2B8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9D2B8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2B8B
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2B8B#FFFFFF#000000##FFFFFF
##9D2B8B1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B518E
Deuteranopia (green-blind)
#536288
Tritanopia (blue-blind)
#A53458
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d2b8b;
/* rgb */ color: rgb(157, 43, 139);
/* oklch */ color: oklch(50.0% 0.182 335.1);
Tailwind
colors: {
  custom: {
    50: '#bd6fad',
    500: '#9d2b8b',
    950: '#000000',
  },
}
SCSS
$custom: #9d2b8b;
$custom-light: #bd6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2b8b",
  "rgb": {
    "r": 157,
    "g": 43,
    "b": 139
  },
  "hsl": {
    "h": 309.474,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.49973,
    "c": 0.18237,
    "h": 335.1
  },
  "luminance": 0.1076
}

Semantic roles & 50–950 ramp

primary
#9D2B8B
secondary
#66BD74
accent
#E06048
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9D2B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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