#9C2898#9C2898

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

Color values

HEX#9C2898
RGBrgb(156, 40, 152)
HSLhsl(302, 59%, 38%)
HSVhsv(302, 74%, 61%)
CMYKcmyk(0%, 74.4%, 2.6%, 38.8%)
CIE-LABlab(39.33, 59.56, -35.79)
CIE-LCHlch(39.33, 69.49, 329.00°)
OKLaboklab(50.28% 0.168 -0.0989)
OKLCHoklch(50.28% 0.195 329.5)
XYZxyz(20.1365, 10.8540, 30.7341)
Luminance0.1085 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C2898 #289C2C
analogous
#66289C #9C2898 #9C285E
triadic
#9C2898 #989C28 #28989C
tetradic
#9C2898 #9C6628 #289C2C #285E9C
square
#9C2898 #9C6628 #289C2C #285E9C
split-complementary
#9C2898 #5E9C28 #289C66
monochromatic
#3B0F39 #6B1C69 #9C2898 #CB36C6 #D867D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9C2898#FFFFFF#000000##FFFFFF
##9C28981.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)
#17539B
Deuteranopia (green-blind)
#4A6295
Tritanopia (blue-blind)
#A2385E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9c2898;
/* rgb */ color: rgb(156, 40, 152);
/* oklch */ color: oklch(50.3% 0.195 329.5);
Tailwind
colors: {
  custom: {
    50: '#bd6fb7',
    500: '#9c2898',
    950: '#000000',
  },
}
SCSS
$custom: #9c2898;
$custom-light: #bd6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9c2898",
  "rgb": {
    "r": 156,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 302.069,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50276,
    "c": 0.19499,
    "h": 329.5
  },
  "luminance": 0.10853
}

Semantic roles & 50–950 ramp

primary
#9C2898
secondary
#62BE65
accent
#E24B45
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9C2898

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

Preview Lab → · Contrast checker → · Palette generator →

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