#9C2E8A#9C2E8A

#9C2E8A is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.0% C 0.177 H 335.2°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#9C2E8A
RGBrgb(156, 46, 138)
HSLhsl(310, 54%, 40%)
HSVhsv(310, 71%, 61%)
CMYKcmyk(0%, 70.5%, 11.5%, 38.8%)
CIE-LABlab(39.34, 55.22, -27.25)
CIE-LCHlch(39.34, 61.58, 333.73°)
OKLaboklab(50.04% 0.1611 -0.0743)
OKLCHoklch(50.04% 0.177 335.2)
XYZxyz(19.2750, 10.8585, 25.1206)
Luminance0.1086 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2E8A #2E9C40
analogous
#772E9C #9C2E8A #9C2E53
triadic
#9C2E8A #8A9C2E #2E8A9C
tetradic
#9C2E8A #9C772E #2E9C40 #2E539C
square
#9C2E8A #9C772E #2E9C40 #2E539C
split-complementary
#9C2E8A #539C2E #2E9C77
monochromatic
#3D1236 #6D2060 #9C2E8A #C740B1 #D570C4

Accessibility & contrast

On white

6.62
#9C2E8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#9C2E8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2E8A
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2E8A#FFFFFF#000000##FFFFFF
##9C2E8A1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c2e8a;
/* rgb */ color: rgb(156, 46, 138);
/* oklch */ color: oklch(50.0% 0.177 335.2);
Tailwind
colors: {
  custom: {
    50: '#bd71ac',
    500: '#9c2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #9c2e8a;
$custom-light: #bd71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2e8a",
  "rgb": {
    "r": 156,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 309.818,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.50043,
    "c": 0.1774,
    "h": 335.2
  },
  "luminance": 0.10857
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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