#9A3497#9A3497

#9A3497 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.0% C 0.179 H 329.0°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9A3497
RGBrgb(154, 52, 151)
HSLhsl(302, 50%, 40%)
HSVhsv(302, 66%, 60%)
CMYKcmyk(0%, 66.2%, 1.9%, 39.6%)
CIE-LABlab(40.51, 54.51, -33.35)
CIE-LCHlch(40.51, 63.90, 328.54°)
OKLaboklab(51.04% 0.1532 -0.092)
OKLCHoklch(51.04% 0.179 329)
XYZxyz(20.1401, 11.5618, 30.4430)
Luminance0.1156 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A3497 #349A37
analogous
#6A349A #9A3497 #9A3464
triadic
#9A3497 #979A34 #34979A
tetradic
#9A3497 #9A6A34 #349A37 #34649A
square
#9A3497 #9A6A34 #349A37 #34649A
split-complementary
#9A3497 #649A34 #349A6A
monochromatic
#3E153D #6C256A #9A3497 #C249BE #D177CF

Accessibility & contrast

On white

6.34
#9A3497 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#9A3497 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A3497
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A3497#FFFFFF#000000##FFFFFF
##9A34971.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29579A
Deuteranopia (green-blind)
#4F6494
Tritanopia (blue-blind)
#9F4161
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #9a3497;
/* rgb */ color: rgb(154, 52, 151);
/* oklch */ color: oklch(51.0% 0.179 329.0);
Tailwind
colors: {
  custom: {
    50: '#bb74b6',
    500: '#9a3497',
    950: '#000000',
  },
}
SCSS
$custom: #9a3497;
$custom-light: #bb74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a3497",
  "rgb": {
    "r": 154,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 301.765,
    "s": 49.515,
    "l": 40.392
  },
  "oklch": {
    "l": 0.51041,
    "c": 0.17869,
    "h": 329
  },
  "luminance": 0.1156
}

Semantic roles & 50–950 ramp

primary
#9A3497
secondary
#70BA72
accent
#D9534F
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120911
muted
#817B80

Preview Lab

Preview with #9A3497

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

Preview Lab → · Contrast checker → · Palette generator →

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