#9B2D8A#9B2D8A

#9B2D8A is a mid, vivid purple. Relative luminance 0.107; OKLCH L 49.8% C 0.178 H 334.8°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#9B2D8A
RGBrgb(155, 45, 138)
HSLhsl(309, 55%, 39%)
HSVhsv(309, 71%, 61%)
CMYKcmyk(0%, 71%, 11%, 39.2%)
CIE-LABlab(39.04, 55.34, -27.73)
CIE-LCHlch(39.04, 61.90, 333.38°)
OKLaboklab(49.79% 0.1611 -0.0757)
OKLCHoklch(49.79% 0.178 334.8)
XYZxyz(19.0436, 10.6819, 25.0987)
Luminance0.1068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2D8A #2D9B3E
analogous
#752D9B #9B2D8A #9B2D53
triadic
#9B2D8A #8A9B2D #2D8A9B
tetradic
#9B2D8A #9B752D #2D9B3E #2D539B
square
#9B2D8A #9B752D #2D9B3E #2D539B
split-complementary
#9B2D8A #539B2D #2D9B75
monochromatic
#3C1136 #6C1F60 #9B2D8A #C73EB2 #D56EC5

Accessibility & contrast

On white

6.70
#9B2D8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#9B2D8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2D8A
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2D8A#FFFFFF#000000##FFFFFF
##9B2D8A1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C528D
Deuteranopia (green-blind)
#526287
Tritanopia (blue-blind)
#A33558
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #9b2d8a;
/* rgb */ color: rgb(155, 45, 138);
/* oklch */ color: oklch(49.8% 0.178 334.8);
Tailwind
colors: {
  custom: {
    50: '#bc70ac',
    500: '#9b2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #9b2d8a;
$custom-light: #bc70ac;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2d8a",
  "rgb": {
    "r": 155,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 309.273,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.49792,
    "c": 0.17803,
    "h": 334.8
  },
  "luminance": 0.1068
}

Semantic roles & 50–950 ramp

primary
#9B2D8A
secondary
#68BC75
accent
#DE6049
background
#FBF7FA
surface
#F7EDF4
border
#D0C8CE
text
#120810
muted
#817B7F

Preview Lab

Preview with #9B2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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