#9A4E97#9A4E97

#9A4E97 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 54.3% C 0.139 H 328.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#9A4E97
RGBrgb(154, 78, 151)
HSLhsl(302, 33%, 45%)
HSVhsv(302, 49%, 60%)
CMYKcmyk(0%, 49.4%, 1.9%, 39.6%)
CIE-LABlab(45.02, 42.29, -26.29)
CIE-LCHlch(45.02, 49.79, 328.13°)
OKLaboklab(54.34% 0.1185 -0.0719)
OKLCHoklch(54.34% 0.139 328.7)
XYZxyz(21.6364, 14.5544, 30.9418)
Luminance0.1455 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A4E97 #4E9A51
analogous
#774E9A #9A4E97 #9A4E71
triadic
#9A4E97 #979A4E #4E979A
tetradic
#9A4E97 #9A774E #4E9A51 #4E719A
square
#9A4E97 #9A774E #4E9A51 #4E719A
split-complementary
#9A4E97 #719A4E #4E9A77
monochromatic
#492547 #71396F #9A4E97 #B66FB3 #CB98C9

Accessibility & contrast

On white

5.37
#9A4E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#9A4E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A4E97
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A4E97#FFFFFF#000000##FFFFFF
##9A4E971.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496499
Deuteranopia (green-blind)
#5F6E95
Tritanopia (blue-blind)
#9F556B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #9a4e97;
/* rgb */ color: rgb(154, 78, 151);
/* oklch */ color: oklch(54.3% 0.139 328.7);
Tailwind
colors: {
  custom: {
    50: '#ba82b6',
    500: '#9a4e97',
    950: '#000000',
  },
}
SCSS
$custom: #9a4e97;
$custom-light: #ba82b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a4e97",
  "rgb": {
    "r": 154,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 302.368,
    "s": 32.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54343,
    "c": 0.13861,
    "h": 328.7
  },
  "luminance": 0.14553
}

Semantic roles & 50–950 ramp

primary
#9A4E97
secondary
#8DB78E
accent
#C9635F
background
#FBF8FB
surface
#F6EFF6
border
#D0CAD0
text
#120B11
muted
#817C80

Preview Lab

Preview with #9A4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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