#9F4797#9F4797

#9F4797 is a mid, vivid purple. Relative luminance 0.141; OKLCH L 54.0% C 0.154 H 331.1°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#9F4797
RGBrgb(159, 71, 151)
HSLhsl(305, 38%, 45%)
HSVhsv(305, 55%, 62%)
CMYKcmyk(0%, 55.3%, 5%, 37.6%)
CIE-LABlab(44.39, 47.31, -27.20)
CIE-LCHlch(44.39, 54.57, 330.10°)
OKLaboklab(54.03% 0.1344 -0.0744)
OKLCHoklch(54.03% 0.154 331.1)
XYZxyz(22.1371, 14.1132, 30.8303)
Luminance0.1411 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F4797 #479F4F
analogous
#7B479F #9F4797 #9F476B
triadic
#9F4797 #979F47 #47979F
tetradic
#9F4797 #9F7B47 #479F4F #476B9F
square
#9F4797 #9F7B47 #479F4F #476B9F
split-complementary
#9F4797 #6B9F47 #479F7B
monochromatic
#4A2147 #75346F #9F4797 #BB68B4 #CE92C9

Accessibility & contrast

On white

5.49
#9F4797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#9F4797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F4797
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F4797#FFFFFF#000000##FFFFFF
##9F47971.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#43619A
Deuteranopia (green-blind)
#5E6D95
Tritanopia (blue-blind)
#A54E68
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #9f4797;
/* rgb */ color: rgb(159, 71, 151);
/* oklch */ color: oklch(54.0% 0.154 331.1);
Tailwind
colors: {
  custom: {
    50: '#be7fb6',
    500: '#9f4797',
    950: '#000000',
  },
}
SCSS
$custom: #9f4797;
$custom-light: #be7fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9f4797",
  "rgb": {
    "r": 159,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 305.455,
    "s": 38.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54029,
    "c": 0.15364,
    "h": 331.1
  },
  "luminance": 0.14112
}

Semantic roles & 50–950 ramp

primary
#9F4797
secondary
#88BA8C
accent
#CE645A
background
#FBF7FB
surface
#F7EEF6
border
#D0C9D0
text
#120A11
muted
#817C80

Preview Lab

Preview with #9F4797

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

Preview Lab → · Contrast checker → · Palette generator →

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