#9B2DB2#9B2DB2

#9B2DB2 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.2% C 0.210 H 320.0°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9B2DB2
RGBrgb(155, 45, 178)
HSLhsl(290, 60%, 44%)
HSVhsv(290, 75%, 70%)
CMYKcmyk(12.9%, 74.7%, 0%, 30.2%)
CIE-LABlab(41.31, 62.22, -48.21)
CIE-LCHlch(41.31, 78.71, 322.23°)
OKLaboklab(52.15% 0.1611 -0.1352)
OKLCHoklch(52.15% 0.21 320)
XYZxyz(22.4908, 12.0608, 43.2541)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2DB2 #44B22D
analogous
#582DB2 #9B2DB2 #B22D86
triadic
#9B2DB2 #B29B2D #2DB29B
tetradic
#9B2DB2 #B2582D #44B22D #2D86B2
square
#9B2DB2 #B2582D #44B22D #2D86B2
split-complementary
#9B2DB2 #86B22D #2DB258
monochromatic
#461450 #702181 #9B2DB2 #BA4BD1 #CD7CDE

Accessibility & contrast

On white

6.15
#9B2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#9B2DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2DB2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2DB2#FFFFFF#000000##FFFFFF
##9B2DB21.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#3965AF
Tritanopia (blue-blind)
#9B486E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #9b2db2;
/* rgb */ color: rgb(155, 45, 178);
/* oklch */ color: oklch(52.2% 0.210 320.0);
Tailwind
colors: {
  custom: {
    50: '#bc72ca',
    500: '#9b2db2',
    950: '#000000',
  },
}
SCSS
$custom: #9b2db2;
$custom-light: #bc72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2db2",
  "rgb": {
    "r": 155,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 289.624,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52154,
    "c": 0.21033,
    "h": 320
  },
  "luminance": 0.1206
}

Semantic roles & 50–950 ramp

primary
#9B2DB2
secondary
#83C675
accent
#E34560
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#120913
muted
#817B82

Preview Lab

Preview with #9B2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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