#9A2A8D#9A2A8D

#9A2A8D is a mid, vivid purple. Relative luminance 0.104; OKLCH L 49.5% C 0.183 H 333.1°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#9A2A8D
RGBrgb(154, 42, 141)
HSLhsl(307, 57%, 38%)
HSVhsv(307, 73%, 60%)
CMYKcmyk(0%, 72.7%, 8.4%, 39.6%)
CIE-LABlab(38.64, 56.65, -30.21)
CIE-LCHlch(38.64, 64.20, 331.93°)
OKLaboklab(49.52% 0.1635 -0.0828)
OKLCHoklch(49.52% 0.183 333.1)
XYZxyz(18.9622, 10.4506, 26.2126)
Luminance0.1045 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2A8D #2A9A37
analogous
#6F2A9A #9A2A8D #9A2A55
triadic
#9A2A8D #8D9A2A #2A8D9A
tetradic
#9A2A8D #9A6F2A #2A9A37 #2A559A
square
#9A2A8D #9A6F2A #2A9A37 #2A559A
split-complementary
#9A2A8D #559A2A #2A9A6F
monochromatic
#3A1035 #6A1D61 #9A2A8D #C938B8 #D668C9

Accessibility & contrast

On white

6.80
#9A2A8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#9A2A8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2A8D
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2A8D#FFFFFF#000000##FFFFFF
##9A2A8D1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265190
Deuteranopia (green-blind)
#4F618A
Tritanopia (blue-blind)
#A13558
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9a2a8d;
/* rgb */ color: rgb(154, 42, 141);
/* oklch */ color: oklch(49.5% 0.183 333.1);
Tailwind
colors: {
  custom: {
    50: '#bb6fae',
    500: '#9a2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #9a2a8d;
$custom-light: #bb6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2a8d",
  "rgb": {
    "r": 154,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 306.964,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4952,
    "c": 0.18329,
    "h": 333.1
  },
  "luminance": 0.10449
}

Semantic roles & 50–950 ramp

primary
#9A2A8D
secondary
#63BC6E
accent
#E05947
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9A2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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