#9C2F8A#9C2F8A

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

Color values

HEX#9C2F8A
RGBrgb(156, 47, 138)
HSLhsl(310, 54%, 40%)
HSVhsv(310, 70%, 61%)
CMYKcmyk(0%, 69.9%, 11.5%, 38.8%)
CIE-LABlab(39.48, 54.84, -27.04)
CIE-LCHlch(39.48, 61.14, 333.75°)
OKLaboklab(50.14% 0.16 -0.0737)
OKLCHoklch(50.14% 0.176 335.2)
XYZxyz(19.3145, 10.9376, 25.1338)
Luminance0.1094 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2F8A #2F9C41
analogous
#772F9C #9C2F8A #9C2F54
triadic
#9C2F8A #8A9C2F #2F8A9C
tetradic
#9C2F8A #9C772F #2F9C41 #2F549C
square
#9C2F8A #9C772F #2F9C41 #2F549C
split-complementary
#9C2F8A #549C2F #2F9C77
monochromatic
#3E1337 #6D2160 #9C2F8A #C642B0 #D471C4

Accessibility & contrast

On white

6.59
#9C2F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9C2F8A
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2F8A#FFFFFF#000000##FFFFFF
##9C2F8A1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9c2f8a;
/* rgb */ color: rgb(156, 47, 138);
/* oklch */ color: oklch(50.1% 0.176 335.2);
Tailwind
colors: {
  custom: {
    50: '#bc71ac',
    500: '#9c2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #9c2f8a;
$custom-light: #bc71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2f8a",
  "rgb": {
    "r": 156,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 309.908,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.5014,
    "c": 0.17614,
    "h": 335.2
  },
  "luminance": 0.10936
}

Semantic roles & 50–950 ramp

primary
#9C2F8A
secondary
#6BBC78
accent
#DD634B
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9C2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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