#9D278B#9D278B

#9D278B is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.6% C 0.187 H 335.0°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#9D278B
RGBrgb(157, 39, 139)
HSLhsl(309, 60%, 38%)
HSVhsv(309, 75%, 62%)
CMYKcmyk(0%, 75.2%, 11.5%, 38.4%)
CIE-LABlab(38.70, 58.06, -28.86)
CIE-LCHlch(38.70, 64.84, 333.57°)
OKLaboklab(49.63% 0.1694 -0.0789)
OKLCHoklch(49.63% 0.187 335)
XYZxyz(19.2906, 10.4849, 25.4289)
Luminance0.1048 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D278B #279D39
analogous
#74279D #9D278B #9D2750
triadic
#9D278B #8B9D27 #278B9D
tetradic
#9D278B #9D7427 #279D39 #27509D
square
#9D278B #9D7427 #279D39 #27509D
split-complementary
#9D278B #509D27 #279D74
monochromatic
#3B0F34 #6C1B60 #9D278B #CD35B5 #D966C7

Accessibility & contrast

On white

6.78
#9D278B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#9D278B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D278B
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D278B#FFFFFF#000000##FFFFFF
##9D278B1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d278b;
/* rgb */ color: rgb(157, 39, 139);
/* oklch */ color: oklch(49.6% 0.187 335.0);
Tailwind
colors: {
  custom: {
    50: '#be6ead',
    500: '#9d278b',
    950: '#000000',
  },
}
SCSS
$custom: #9d278b;
$custom-light: #be6ead;
$custom-dark: #000000;
JSON
{
  "hex": "#9d278b",
  "rgb": {
    "r": 157,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 309.153,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.49629,
    "c": 0.1869,
    "h": 335
  },
  "luminance": 0.10483
}

Semantic roles & 50–950 ramp

primary
#9D278B
secondary
#61BF6F
accent
#E35D44
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#130810
muted
#827B7F

Preview Lab

Preview with #9D278B

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

Preview Lab → · Contrast checker → · Palette generator →

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