#9C278B#9C278B

#9C278B is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.5% C 0.186 H 334.7°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#9C278B
RGBrgb(156, 39, 139)
HSLhsl(309, 60%, 38%)
HSVhsv(309, 75%, 61%)
CMYKcmyk(0%, 75%, 10.9%, 38.8%)
CIE-LABlab(38.52, 57.83, -29.14)
CIE-LCHlch(38.52, 64.76, 333.25°)
OKLaboklab(49.47% 0.1684 -0.0797)
OKLCHoklch(49.47% 0.186 334.7)
XYZxyz(19.0962, 10.3847, 25.4198)
Luminance0.1038 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C278B #279C38
analogous
#72279C #9C278B #9C2750
triadic
#9C278B #8B9C27 #278B9C
tetradic
#9C278B #9C7227 #279C38 #27509C
square
#9C278B #9C7227 #279C38 #27509C
split-complementary
#9C278B #509C27 #279C72
monochromatic
#3A0F34 #6B1B5F #9C278B #CC34B6 #D865C8

Accessibility & contrast

On white

6.83
#9C278B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9C278B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9C278B
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C278B#FFFFFF#000000##FFFFFF
##9C278B1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26508E
Deuteranopia (green-blind)
#506188
Tritanopia (blue-blind)
#A43156
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9c278b;
/* rgb */ color: rgb(156, 39, 139);
/* oklch */ color: oklch(49.5% 0.186 334.7);
Tailwind
colors: {
  custom: {
    50: '#bd6ead',
    500: '#9c278b',
    950: '#000000',
  },
}
SCSS
$custom: #9c278b;
$custom-light: #bd6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#9c278b",
  "rgb": {
    "r": 156,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 308.718,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4947,
    "c": 0.18633,
    "h": 334.7
  },
  "luminance": 0.10383
}

Semantic roles & 50–950 ramp

primary
#9C278B
secondary
#61BE6E
accent
#E35C45
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9C278B

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

Preview Lab → · Contrast checker → · Palette generator →

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