#9F4792#9F4792

#9F4792 is a mid, vivid purple. Relative luminance 0.140; OKLCH L 53.8% C 0.149 H 333.4°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#9F4792
RGBrgb(159, 71, 146)
HSLhsl(309, 38%, 45%)
HSVhsv(309, 55%, 62%)
CMYKcmyk(0%, 55.3%, 8.2%, 37.6%)
CIE-LABlab(44.17, 46.44, -24.55)
CIE-LCHlch(44.17, 52.53, 332.13°)
OKLaboklab(53.79% 0.1336 -0.0668)
OKLCHoklch(53.79% 0.149 333.4)
XYZxyz(21.7396, 13.9542, 28.7370)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F4792 #479F54
analogous
#80479F #9F4792 #9F4766
triadic
#9F4792 #929F47 #47929F
tetradic
#9F4792 #9F8047 #479F54 #47669F
square
#9F4792 #9F8047 #479F54 #47669F
split-complementary
#9F4792 #669F47 #479F80
monochromatic
#4A2144 #75346B #9F4792 #BB68AF #CE92C5

Accessibility & contrast

On white

5.54
#9F4792 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#9F4792 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9F4792
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F4792#FFFFFF#000000##FFFFFF
##9F47921.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456094
Deuteranopia (green-blind)
#606D90
Tritanopia (blue-blind)
#A64D66
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #9f4792;
/* rgb */ color: rgb(159, 71, 146);
/* oklch */ color: oklch(53.8% 0.149 333.4);
Tailwind
colors: {
  custom: {
    50: '#be7eb2',
    500: '#9f4792',
    950: '#000000',
  },
}
SCSS
$custom: #9f4792;
$custom-light: #be7eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f4792",
  "rgb": {
    "r": 159,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 308.864,
    "s": 38.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.53787,
    "c": 0.14936,
    "h": 333.4
  },
  "luminance": 0.13953
}

Semantic roles & 50–950 ramp

primary
#9F4792
secondary
#88BA8F
accent
#CE6B5A
background
#FBF7FA
surface
#F7EEF5
border
#D0C9CF
text
#120A11
muted
#817C80

Preview Lab

Preview with #9F4792

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

Preview Lab → · Contrast checker → · Palette generator →

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