#9A2A8B#9A2A8B

#9A2A8B is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.4% C 0.182 H 334.0°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#9A2A8B
RGBrgb(154, 42, 139)
HSLhsl(308, 57%, 38%)
HSVhsv(308, 73%, 60%)
CMYKcmyk(0%, 72.7%, 9.7%, 39.6%)
CIE-LABlab(38.54, 56.33, -29.15)
CIE-LCHlch(38.54, 63.42, 332.64°)
OKLaboklab(49.41% 0.1634 -0.0798)
OKLCHoklch(49.41% 0.182 334)
XYZxyz(18.8147, 10.3916, 25.4360)
Luminance0.1039 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2A8B #2A9A39
analogous
#712A9A #9A2A8B #9A2A53
triadic
#9A2A8B #8B9A2A #2A8B9A
tetradic
#9A2A8B #9A712A #2A9A39 #2A539A
square
#9A2A8B #9A712A #2A9A39 #2A539A
split-complementary
#9A2A8B #539A2A #2A9A71
monochromatic
#3A1034 #6A1D60 #9A2A8B #C938B5 #D668C7

Accessibility & contrast

On white

6.82
#9A2A8B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#9A2A8B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2A8B
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2A8B#FFFFFF#000000##FFFFFF
##9A2A8B1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27508E
Deuteranopia (green-blind)
#506188
Tritanopia (blue-blind)
#A13457
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9a2a8b;
/* rgb */ color: rgb(154, 42, 139);
/* oklch */ color: oklch(49.4% 0.182 334.0);
Tailwind
colors: {
  custom: {
    50: '#bb6fad',
    500: '#9a2a8b',
    950: '#000000',
  },
}
SCSS
$custom: #9a2a8b;
$custom-light: #bb6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2a8b",
  "rgb": {
    "r": 154,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 308.036,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.49412,
    "c": 0.1818,
    "h": 334
  },
  "luminance": 0.1039
}

Semantic roles & 50–950 ramp

primary
#9A2A8B
secondary
#63BC6F
accent
#E05C47
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9A2A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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