#9B2A8A#9B2A8A

#9B2A8A is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.5% C 0.182 H 334.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#9B2A8A
RGBrgb(155, 42, 138)
HSLhsl(309, 57%, 39%)
HSVhsv(309, 73%, 61%)
CMYKcmyk(0%, 72.9%, 11%, 39.2%)
CIE-LABlab(38.66, 56.42, -28.33)
CIE-LCHlch(38.66, 63.13, 333.33°)
OKLaboklab(49.52% 0.1643 -0.0774)
OKLCHoklch(49.52% 0.182 334.8)
XYZxyz(18.9332, 10.4611, 25.0619)
Luminance0.1046 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2A8A #2A9B3B
analogous
#732A9B #9B2A8A #9B2A51
triadic
#9B2A8A #8A9B2A #2A8A9B
tetradic
#9B2A8A #9B732A #2A9B3B #2A519B
square
#9B2A8A #9B732A #2A9B3B #2A519B
split-complementary
#9B2A8A #519B2A #2A9B73
monochromatic
#3B1034 #6B1D5F #9B2A8A #C939B4 #D669C6

Accessibility & contrast

On white

6.79
#9B2A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #9B2A8A
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2A8A#FFFFFF#000000##FFFFFF
##9B2A8A1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29508D
Deuteranopia (green-blind)
#516187
Tritanopia (blue-blind)
#A33357
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9b2a8a;
/* rgb */ color: rgb(155, 42, 138);
/* oklch */ color: oklch(49.5% 0.182 334.8);
Tailwind
colors: {
  custom: {
    50: '#bc6fac',
    500: '#9b2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #9b2a8a;
$custom-light: #bc6fac;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2a8a",
  "rgb": {
    "r": 155,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 309.027,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.49516,
    "c": 0.18163,
    "h": 334.8
  },
  "luminance": 0.10459
}

Semantic roles & 50–950 ramp

primary
#9B2A8A
secondary
#64BD71
accent
#E15E47
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9B2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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