#9D278D#9D278D

#9D278D is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.7% C 0.188 H 334.2°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#9D278D
RGBrgb(157, 39, 141)
HSLhsl(308, 60%, 38%)
HSVhsv(308, 75%, 62%)
CMYKcmyk(0%, 75.2%, 10.2%, 38.4%)
CIE-LABlab(38.80, 58.37, -29.92)
CIE-LCHlch(38.80, 65.59, 332.86°)
OKLaboklab(49.74% 0.1696 -0.0819)
OKLCHoklch(49.74% 0.188 334.2)
XYZxyz(19.4381, 10.5439, 26.2056)
Luminance0.1054 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D278D #279D37
analogous
#72279D #9D278D #9D2752
triadic
#9D278D #8D9D27 #278D9D
tetradic
#9D278D #9D7227 #279D37 #27529D
square
#9D278D #9D7227 #279D37 #27529D
split-complementary
#9D278D #529D27 #279D72
monochromatic
#3B0F35 #6C1B61 #9D278D #CD35B8 #D966C9

Accessibility & contrast

On white

6.76
#9D278D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#9D278D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D278D
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D278D#FFFFFF#000000##FFFFFF
##9D278D1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255090
Deuteranopia (green-blind)
#50618A
Tritanopia (blue-blind)
#A53258
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9d278d;
/* rgb */ color: rgb(157, 39, 141);
/* oklch */ color: oklch(49.7% 0.188 334.2);
Tailwind
colors: {
  custom: {
    50: '#be6eae',
    500: '#9d278d',
    950: '#000000',
  },
}
SCSS
$custom: #9d278d;
$custom-light: #be6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#9d278d",
  "rgb": {
    "r": 157,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 308.136,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.49736,
    "c": 0.18834,
    "h": 334.2
  },
  "luminance": 0.10542
}

Semantic roles & 50–950 ramp

primary
#9D278D
secondary
#61BF6E
accent
#E35A44
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9D278D

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

Preview Lab → · Contrast checker → · Palette generator →

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