#9A4797#9A4797

#9A4797 is a mid, vivid purple. Relative luminance 0.136; OKLCH L 53.3% C 0.150 H 328.8°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9A4797
RGBrgb(154, 71, 151)
HSLhsl(302, 37%, 44%)
HSVhsv(302, 54%, 60%)
CMYKcmyk(0%, 53.9%, 1.9%, 39.6%)
CIE-LABlab(43.67, 45.86, -28.39)
CIE-LCHlch(43.67, 53.93, 328.24°)
OKLaboklab(53.35% 0.1286 -0.0778)
OKLCHoklch(53.35% 0.15 328.8)
XYZxyz(21.1653, 13.6121, 30.7847)
Luminance0.1361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A4797 #479A4A
analogous
#74479A #9A4797 #9A476E
triadic
#9A4797 #979A47 #47979A
tetradic
#9A4797 #9A7447 #479A4A #476E9A
square
#9A4797 #9A7447 #479A4A #476E9A
split-complementary
#9A4797 #6E9A47 #479A74
monochromatic
#462045 #70346E #9A4797 #B866B5 #CC90CA

Accessibility & contrast

On white

5.64
#9A4797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#9A4797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A4797
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A4797#FFFFFF#000000##FFFFFF
##9A47971.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41609A
Deuteranopia (green-blind)
#5A6B95
Tritanopia (blue-blind)
#9F4F68
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #9a4797;
/* rgb */ color: rgb(154, 71, 151);
/* oklch */ color: oklch(53.3% 0.150 328.8);
Tailwind
colors: {
  custom: {
    50: '#ba7eb6',
    500: '#9a4797',
    950: '#000000',
  },
}
SCSS
$custom: #9a4797;
$custom-light: #ba7eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a4797",
  "rgb": {
    "r": 154,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 302.169,
    "s": 36.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.53348,
    "c": 0.15035,
    "h": 328.8
  },
  "luminance": 0.13611
}

Semantic roles & 50–950 ramp

primary
#9A4797
secondary
#85B787
accent
#CD5F5B
background
#FBF7FB
surface
#F6EEF6
border
#D0C9D0
text
#120A11
muted
#817C80

Preview Lab

Preview with #9A4797

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

Preview Lab → · Contrast checker → · Palette generator →

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