#9B2A8D#9B2A8D

#9B2A8D is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.7% C 0.184 H 333.5°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#9B2A8D
RGBrgb(155, 42, 141)
HSLhsl(307, 57%, 39%)
HSVhsv(307, 73%, 61%)
CMYKcmyk(0%, 72.9%, 9%, 39.2%)
CIE-LABlab(38.81, 56.89, -29.93)
CIE-LCHlch(38.81, 64.28, 332.25°)
OKLaboklab(49.68% 0.1646 -0.082)
OKLCHoklch(49.68% 0.184 333.5)
XYZxyz(19.1534, 10.5492, 26.2216)
Luminance0.1055 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2A8D #2A9B38
analogous
#702A9B #9B2A8D #9B2A54
triadic
#9B2A8D #8D9B2A #2A8D9B
tetradic
#9B2A8D #9B702A #2A9B38 #2A549B
square
#9B2A8D #9B702A #2A9B38 #2A549B
split-complementary
#9B2A8D #549B2A #2A9B70
monochromatic
#3B1035 #6B1D61 #9B2A8D #C939B7 #D669C9

Accessibility & contrast

On white

6.75
#9B2A8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#9B2A8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2A8D
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2A8D#FFFFFF#000000##FFFFFF
##9B2A8D1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265190
Deuteranopia (green-blind)
#50618A
Tritanopia (blue-blind)
#A23558
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #9b2a8d;
/* rgb */ color: rgb(155, 42, 141);
/* oklch */ color: oklch(49.7% 0.184 333.5);
Tailwind
colors: {
  custom: {
    50: '#bc6fae',
    500: '#9b2a8d',
    950: '#000000',
  },
}
SCSS
$custom: #9b2a8d;
$custom-light: #bc6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2a8d",
  "rgb": {
    "r": 155,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 307.434,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.49676,
    "c": 0.18386,
    "h": 333.5
  },
  "luminance": 0.10548
}

Semantic roles & 50–950 ramp

primary
#9B2A8D
secondary
#64BD6F
accent
#E15A47
background
#FCF7FA
surface
#F8EDF4
border
#D1C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9B2A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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