#9C2897#9C2897

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

Color values

HEX#9C2897
RGBrgb(156, 40, 151)
HSLhsl(303, 59%, 38%)
HSVhsv(303, 74%, 61%)
CMYKcmyk(0%, 74.4%, 3.2%, 38.8%)
CIE-LABlab(39.28, 59.40, -35.27)
CIE-LCHlch(39.28, 69.08, 329.30°)
OKLaboklab(50.22% 0.168 -0.0974)
OKLCHoklch(50.22% 0.194 329.9)
XYZxyz(20.0549, 10.8214, 30.3046)
Luminance0.1082 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2897 #289C2D
analogous
#67289C #9C2897 #9C285D
triadic
#9C2897 #979C28 #28979C
tetradic
#9C2897 #9C6728 #289C2D #285D9C
square
#9C2897 #9C6728 #289C2D #285D9C
split-complementary
#9C2897 #5D9C28 #289C67
monochromatic
#3B0F39 #6B1C68 #9C2897 #CB36C5 #D867D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C2897#FFFFFF#000000##FFFFFF
##9C28971.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)
#19539A
Deuteranopia (green-blind)
#4B6294
Tritanopia (blue-blind)
#A2385D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9c2897;
/* rgb */ color: rgb(156, 40, 151);
/* oklch */ color: oklch(50.2% 0.194 329.9);
Tailwind
colors: {
  custom: {
    50: '#bd6fb6',
    500: '#9c2897',
    950: '#000000',
  },
}
SCSS
$custom: #9c2897;
$custom-light: #bd6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2897",
  "rgb": {
    "r": 156,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 302.586,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50218,
    "c": 0.19422,
    "h": 329.9
  },
  "luminance": 0.1082
}

Semantic roles & 50–950 ramp

primary
#9C2897
secondary
#62BE66
accent
#E24C45
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9C2897

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

Preview Lab → · Contrast checker → · Palette generator →

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