#9A4D97#9A4D97

#9A4D97 is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.2% C 0.140 H 328.8°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#9A4D97
RGBrgb(154, 77, 151)
HSLhsl(302, 33%, 45%)
HSVhsv(302, 50%, 60%)
CMYKcmyk(0%, 50%, 1.9%, 39.6%)
CIE-LABlab(44.82, 42.81, -26.59)
CIE-LCHlch(44.82, 50.40, 328.15°)
OKLaboklab(54.2% 0.12 -0.0728)
OKLCHoklch(54.2% 0.14 328.8)
XYZxyz(21.5659, 14.4134, 30.9183)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A4D97 #4D9A50
analogous
#774D9A #9A4D97 #9A4D70
triadic
#9A4D97 #979A4D #4D979A
tetradic
#9A4D97 #9A774D #4D9A50 #4D709A
square
#9A4D97 #9A774D #4D9A50 #4D709A
split-complementary
#9A4D97 #709A4D #4D9A77
monochromatic
#482447 #71396F #9A4D97 #B66EB4 #CB97C9

Accessibility & contrast

On white

5.41
#9A4D97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#9A4D97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A4D97
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A4D97#FFFFFF#000000##FFFFFF
##9A4D971.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486399
Deuteranopia (green-blind)
#5E6E95
Tritanopia (blue-blind)
#9F546B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9a4d97;
/* rgb */ color: rgb(154, 77, 151);
/* oklch */ color: oklch(54.2% 0.140 328.8);
Tailwind
colors: {
  custom: {
    50: '#ba82b6',
    500: '#9a4d97',
    950: '#000000',
  },
}
SCSS
$custom: #9a4d97;
$custom-light: #ba82b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a4d97",
  "rgb": {
    "r": 154,
    "g": 77,
    "b": 151
  },
  "hsl": {
    "h": 302.338,
    "s": 33.333,
    "l": 45.294
  },
  "oklch": {
    "l": 0.54196,
    "c": 0.14032,
    "h": 328.8
  },
  "luminance": 0.14412
}

Semantic roles & 50–950 ramp

primary
#9A4D97
secondary
#8CB78D
accent
#C9635E
background
#FBF8FB
surface
#F6EFF6
border
#D0CAD0
text
#120B11
muted
#817C80

Preview Lab

Preview with #9A4D97

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

Preview Lab → · Contrast checker → · Palette generator →

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