#9D2791#9D2791

#9D2791 is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.191 H 332.6°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#9D2791
RGBrgb(157, 39, 145)
HSLhsl(306, 60%, 38%)
HSVhsv(306, 75%, 62%)
CMYKcmyk(0%, 75.2%, 7.6%, 38.4%)
CIE-LABlab(39.01, 58.99, -32.04)
CIE-LCHlch(39.01, 67.13, 331.50°)
OKLaboklab(49.95% 0.1698 -0.088)
OKLCHoklch(49.95% 0.191 332.6)
XYZxyz(19.7411, 10.6651, 27.8014)
Luminance0.1066 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2791 #279D33
analogous
#6E279D #9D2791 #9D2756
triadic
#9D2791 #919D27 #27919D
tetradic
#9D2791 #9D6E27 #279D33 #27569D
square
#9D2791 #9D6E27 #279D33 #27569D
split-complementary
#9D2791 #569D27 #279D6E
monochromatic
#3B0F36 #6C1B64 #9D2791 #CD35BD #D966CD

Accessibility & contrast

On white

6.70
#9D2791 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#9D2791 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2791
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2791#FFFFFF#000000##FFFFFF
##9D27911.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205194
Deuteranopia (green-blind)
#4E628E
Tritanopia (blue-blind)
#A4345A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9d2791;
/* rgb */ color: rgb(157, 39, 145);
/* oklch */ color: oklch(50.0% 0.191 332.6);
Tailwind
colors: {
  custom: {
    50: '#be6eb1',
    500: '#9d2791',
    950: '#000000',
  },
}
SCSS
$custom: #9d2791;
$custom-light: #be6eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2791",
  "rgb": {
    "r": 157,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 306.102,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.49954,
    "c": 0.19128,
    "h": 332.6
  },
  "luminance": 0.10663
}

Semantic roles & 50–950 ramp

primary
#9D2791
secondary
#61BF6B
accent
#E35544
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130811
muted
#827B80

Preview Lab

Preview with #9D2791

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

Preview Lab → · Contrast checker → · Palette generator →

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