#9C2F97#9C2F97

#9C2F97 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.8% C 0.186 H 329.9°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#9C2F97
RGBrgb(156, 47, 151)
HSLhsl(303, 54%, 40%)
HSVhsv(303, 70%, 61%)
CMYKcmyk(0%, 69.9%, 3.2%, 38.8%)
CIE-LABlab(40.14, 56.95, -33.91)
CIE-LCHlch(40.14, 66.28, 329.23°)
OKLaboklab(50.84% 0.161 -0.0935)
OKLCHoklch(50.84% 0.186 329.9)
XYZxyz(20.3126, 11.3368, 30.3905)
Luminance0.1134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2F97 #2F9C34
analogous
#6A2F9C #9C2F97 #9C2F61
triadic
#9C2F97 #979C2F #2F979C
tetradic
#9C2F97 #9C6A2F #2F9C34 #2F619C
square
#9C2F97 #9C6A2F #2F9C34 #2F619C
split-complementary
#9C2F97 #619C2F #2F9C6A
monochromatic
#3E133C #6D2169 #9C2F97 #C642C0 #D471D0

Accessibility & contrast

On white

6.43
#9C2F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#9C2F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C2F97
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C2F97#FFFFFF#000000##FFFFFF
##9C2F971.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23559A
Deuteranopia (green-blind)
#4E6494
Tritanopia (blue-blind)
#A23D5F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9c2f97;
/* rgb */ color: rgb(156, 47, 151);
/* oklch */ color: oklch(50.8% 0.186 329.9);
Tailwind
colors: {
  custom: {
    50: '#bd72b6',
    500: '#9c2f97',
    950: '#000000',
  },
}
SCSS
$custom: #9c2f97;
$custom-light: #bd72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2f97",
  "rgb": {
    "r": 156,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 302.752,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50839,
    "c": 0.18618,
    "h": 329.9
  },
  "luminance": 0.11335
}

Semantic roles & 50–950 ramp

primary
#9C2F97
secondary
#6BBC6F
accent
#DD514B
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9C2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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