#9A2A8A#9A2A8A

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

Color values

HEX#9A2A8A
RGBrgb(154, 42, 138)
HSLhsl(309, 57%, 38%)
HSVhsv(309, 73%, 60%)
CMYKcmyk(0%, 72.7%, 10.4%, 39.6%)
CIE-LABlab(38.49, 56.17, -28.61)
CIE-LCHlch(38.49, 63.04, 333.01°)
OKLaboklab(49.36% 0.1633 -0.0783)
OKLCHoklch(49.36% 0.181 334.4)
XYZxyz(18.7420, 10.3625, 25.0529)
Luminance0.1036 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2A8A #2A9A3A
analogous
#722A9A #9A2A8A #9A2A52
triadic
#9A2A8A #8A9A2A #2A8A9A
tetradic
#9A2A8A #9A722A #2A9A3A #2A529A
square
#9A2A8A #9A722A #2A9A3A #2A529A
split-complementary
#9A2A8A #529A2A #2A9A72
monochromatic
#3A1034 #6A1D5F #9A2A8A #C938B4 #D668C6

Accessibility & contrast

On white

6.84
#9A2A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#9A2A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2A8A
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2A8A#FFFFFF#000000##FFFFFF
##9A2A8A1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28508D
Deuteranopia (green-blind)
#506087
Tritanopia (blue-blind)
#A13457
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9a2a8a;
/* rgb */ color: rgb(154, 42, 138);
/* oklch */ color: oklch(49.4% 0.181 334.4);
Tailwind
colors: {
  custom: {
    50: '#bb6fac',
    500: '#9a2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #9a2a8a;
$custom-light: #bb6fac;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2a8a",
  "rgb": {
    "r": 154,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 308.571,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.49359,
    "c": 0.18105,
    "h": 334.4
  },
  "luminance": 0.10361
}

Semantic roles & 50–950 ramp

primary
#9A2A8A
secondary
#63BC70
accent
#E05D47
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9A2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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