#9F2791#9F2791

#9F2791 is a mid, vivid purple. Relative luminance 0.109; OKLCH L 50.3% C 0.192 H 333.3°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#9F2791
RGBrgb(159, 39, 145)
HSLhsl(307, 61%, 39%)
HSVhsv(307, 75%, 62%)
CMYKcmyk(0%, 75.5%, 8.8%, 37.6%)
CIE-LABlab(39.36, 59.45, -31.47)
CIE-LCHlch(39.36, 67.27, 332.11°)
OKLaboklab(50.27% 0.1719 -0.0863)
OKLCHoklch(50.27% 0.192 333.3)
XYZxyz(20.1346, 10.8680, 27.8199)
Luminance0.1087 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F2791 #279F35
analogous
#71279F #9F2791 #9F2755
triadic
#9F2791 #919F27 #27919F
tetradic
#9F2791 #9F7127 #279F35 #27559F
square
#9F2791 #9F7127 #279F35 #27559F
split-complementary
#9F2791 #559F27 #279F71
monochromatic
#3D0F37 #6E1B64 #9F2791 #CE36BC #DA67CC

Accessibility & contrast

On white

6.62
#9F2791 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#9F2791 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F2791
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F2791#FFFFFF#000000##FFFFFF
##9F27911.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225294
Deuteranopia (green-blind)
#50638E
Tritanopia (blue-blind)
#A6335A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #9f2791;
/* rgb */ color: rgb(159, 39, 145);
/* oklch */ color: oklch(50.3% 0.192 333.3);
Tailwind
colors: {
  custom: {
    50: '#bf6eb1',
    500: '#9f2791',
    950: '#000000',
  },
}
SCSS
$custom: #9f2791;
$custom-light: #bf6eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f2791",
  "rgb": {
    "r": 159,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 307,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.50269,
    "c": 0.19236,
    "h": 333.3
  },
  "luminance": 0.10866
}

Semantic roles & 50–950 ramp

primary
#9F2791
secondary
#62C06D
accent
#E45744
background
#FCF7FA
surface
#F8EDF5
border
#D1C8CF
text
#130811
muted
#827B80

Preview Lab

Preview with #9F2791

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

Preview Lab → · Contrast checker → · Palette generator →

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