#9D2799#9D2799

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

Color values

HEX#9D2799
RGBrgb(157, 39, 153)
HSLhsl(302, 60%, 38%)
HSVhsv(302, 75%, 62%)
CMYKcmyk(0%, 75.2%, 2.5%, 38.4%)
CIE-LABlab(39.45, 60.27, -36.21)
CIE-LCHlch(39.45, 70.31, 329.00°)
OKLaboklab(50.41% 0.1701 -0.1001)
OKLCHoklch(50.41% 0.197 329.5)
XYZxyz(20.3798, 10.9206, 31.1653)
Luminance0.1092 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2799 #279D2B
analogous
#66279D #9D2799 #9D275E
triadic
#9D2799 #999D27 #27999D
tetradic
#9D2799 #9D6627 #279D2B #275E9D
square
#9D2799 #9D6627 #279D2B #275E9D
split-complementary
#9D2799 #5E9D27 #279D66
monochromatic
#3B0F39 #6C1B69 #9D2799 #CD35C8 #D966D5

Accessibility & contrast

On white

6.60
#9D2799 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#9D2799 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2799
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2799#FFFFFF#000000##FFFFFF
##9D27991.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15539C
Deuteranopia (green-blind)
#4A6296
Tritanopia (blue-blind)
#A3385E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9d2799;
/* rgb */ color: rgb(157, 39, 153);
/* oklch */ color: oklch(50.4% 0.197 329.5);
Tailwind
colors: {
  custom: {
    50: '#be6eb7',
    500: '#9d2799',
    950: '#000000',
  },
}
SCSS
$custom: #9d2799;
$custom-light: #be6eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2799",
  "rgb": {
    "r": 157,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 302.034,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.50407,
    "c": 0.19732,
    "h": 329.5
  },
  "luminance": 0.10919
}

Semantic roles & 50–950 ramp

primary
#9D2799
secondary
#61BF64
accent
#E34A44
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80

Preview Lab

Preview with #9D2799

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

Preview Lab → · Contrast checker → · Palette generator →

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