#9A2A97#9A2A97

#9A2A97 is a mid, vivid purple. Relative luminance 0.108; OKLCH L 50.1% C 0.191 H 329.1°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#9A2A97
RGBrgb(154, 42, 151)
HSLhsl(302, 57%, 38%)
HSVhsv(302, 73%, 60%)
CMYKcmyk(0%, 72.7%, 1.9%, 39.6%)
CIE-LABlab(39.18, 58.27, -35.46)
CIE-LCHlch(39.18, 68.21, 328.68°)
OKLaboklab(50.08% 0.1639 -0.098)
OKLCHoklch(50.08% 0.191 329.1)
XYZxyz(19.7401, 10.7618, 30.3097)
Luminance0.1076 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2A97 #2A9A2D
analogous
#652A9A #9A2A97 #9A2A5F
triadic
#9A2A97 #979A2A #2A979A
tetradic
#9A2A97 #9A652A #2A9A2D #2A5F9A
square
#9A2A97 #9A652A #2A9A2D #2A5F9A
split-complementary
#9A2A97 #5F9A2A #2A9A65
monochromatic
#3A1039 #6A1D68 #9A2A97 #C938C5 #D668D3

Accessibility & contrast

On white

6.66
#9A2A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#9A2A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2A97
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2A97#FFFFFF#000000##FFFFFF
##9A2A971.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A539A
Deuteranopia (green-blind)
#4A6194
Tritanopia (blue-blind)
#9F3A5E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9a2a97;
/* rgb */ color: rgb(154, 42, 151);
/* oklch */ color: oklch(50.1% 0.191 329.1);
Tailwind
colors: {
  custom: {
    50: '#bb6fb6',
    500: '#9a2a97',
    950: '#000000',
  },
}
SCSS
$custom: #9a2a97;
$custom-light: #bb6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2a97",
  "rgb": {
    "r": 154,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 301.607,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.5008,
    "c": 0.191,
    "h": 329.1
  },
  "luminance": 0.1076
}

Semantic roles & 50–950 ramp

primary
#9A2A97
secondary
#63BC66
accent
#E04B47
background
#FBF7FB
surface
#F7EDF6
border
#D0C8D0
text
#120811
muted
#817B80

Preview Lab

Preview with #9A2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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