#9B2DB9#9B2DB9

#9B2DB9 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.6% C 0.216 H 317.9°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9B2DB9
RGBrgb(155, 45, 185)
HSLhsl(287, 61%, 45%)
HSVhsv(287, 76%, 73%)
CMYKcmyk(16.2%, 75.7%, 0%, 27.5%)
CIE-LABlab(41.77, 63.54, -51.61)
CIE-LCHlch(41.77, 81.86, 320.92°)
OKLaboklab(52.62% 0.1604 -0.1451)
OKLCHoklch(52.62% 0.216 317.9)
XYZxyz(23.2117, 12.3492, 47.0505)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2DB9 #4BB92D
analogous
#552DB9 #9B2DB9 #B92D91
triadic
#9B2DB9 #B99B2D #2DB99B
tetradic
#9B2DB9 #B9552D #4BB92D #2D91B9
square
#9B2DB9 #B9552D #4BB92D #2D91B9
split-complementary
#9B2DB9 #91B92D #2DB955
monochromatic
#491557 #722188 #9B2DB9 #B84FD4 #CC80E0

Accessibility & contrast

On white

6.05
#9B2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#9B2DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2DB9
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2DB9#FFFFFF#000000##FFFFFF
##9B2DB91.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBD
Deuteranopia (green-blind)
#3266B6
Tritanopia (blue-blind)
#9A4B72
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9b2db9;
/* rgb */ color: rgb(155, 45, 185);
/* oklch */ color: oklch(52.6% 0.216 317.9);
Tailwind
colors: {
  custom: {
    50: '#bd72cf',
    500: '#9b2db9',
    950: '#000000',
  },
}
SCSS
$custom: #9b2db9;
$custom-light: #bd72cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2db9",
  "rgb": {
    "r": 155,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 287.143,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5262,
    "c": 0.21631,
    "h": 317.9
  },
  "luminance": 0.12348
}

Semantic roles & 50–950 ramp

primary
#9B2DB9
secondary
#8AC979
accent
#E44466
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9B2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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