#9C2D8B#9C2D8B

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

Color values

HEX#9C2D8B
RGBrgb(156, 45, 139)
HSLhsl(309, 55%, 39%)
HSVhsv(309, 71%, 61%)
CMYKcmyk(0%, 71.2%, 10.9%, 38.8%)
CIE-LABlab(39.26, 55.74, -27.99)
CIE-LCHlch(39.26, 62.38, 333.34°)
OKLaboklab(50% 0.1623 -0.0764)
OKLCHoklch(50% 0.179 334.8)
XYZxyz(19.3091, 10.8104, 25.4908)
Luminance0.1081 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2D8B #2D9C3E
analogous
#762D9C #9C2D8B #9C2D54
triadic
#9C2D8B #8B9C2D #2D8B9C
tetradic
#9C2D8B #9C762D #2D9C3E #2D549C
square
#9C2D8B #9C762D #2D9C3E #2D549C
split-complementary
#9C2D8B #549C2D #2D9C76
monochromatic
#3D1236 #6D1F61 #9C2D8B #C83FB3 #D56EC5

Accessibility & contrast

On white

6.64
#9C2D8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#9C2D8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2D8B
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2D8B#FFFFFF#000000##FFFFFF
##9C2D8B1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c2d8b;
/* rgb */ color: rgb(156, 45, 139);
/* oklch */ color: oklch(50.0% 0.179 334.8);
Tailwind
colors: {
  custom: {
    50: '#bd70ad',
    500: '#9c2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #9c2d8b;
$custom-light: #bd70ad;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2d8b",
  "rgb": {
    "r": 156,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 309.189,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.5,
    "c": 0.17938,
    "h": 334.8
  },
  "luminance": 0.10809
}

Semantic roles & 50–950 ramp

primary
#9C2D8B
secondary
#68BC75
accent
#DF6049
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9C2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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