#9B2DBA#9B2DBA

#9B2DBA is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.7% C 0.217 H 317.6°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#9B2DBA
RGBrgb(155, 45, 186)
HSLhsl(287, 61%, 45%)
HSVhsv(287, 76%, 73%)
CMYKcmyk(16.7%, 75.8%, 0%, 27.1%)
CIE-LABlab(41.83, 63.73, -52.09)
CIE-LCHlch(41.83, 82.31, 320.74°)
OKLaboklab(52.69% 0.1603 -0.1466)
OKLCHoklch(52.69% 0.217 317.6)
XYZxyz(23.3176, 12.3915, 47.6084)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B2DBA #4CBA2D
analogous
#552DBA #9B2DBA #BA2D92
triadic
#9B2DBA #BA9B2D #2DBA9B
tetradic
#9B2DBA #BA552D #4CBA2D #2D92BA
square
#9B2DBA #BA552D #4CBA2D #2D92BA
split-complementary
#9B2DBA #92BA2D #2DBA55
monochromatic
#491557 #722189 #9B2DBA #B750D5 #CB81E0

Accessibility & contrast

On white

6.04
#9B2DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#9B2DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9B2DBA
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B2DBA#FFFFFF#000000##FFFFFF
##9B2DBA1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#3166B7
Tritanopia (blue-blind)
#9A4B72
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #9b2dba;
/* rgb */ color: rgb(155, 45, 186);
/* oklch */ color: oklch(52.7% 0.217 317.6);
Tailwind
colors: {
  custom: {
    50: '#bd72cf',
    500: '#9b2dba',
    950: '#000000',
  },
}
SCSS
$custom: #9b2dba;
$custom-light: #bd72cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9b2dba",
  "rgb": {
    "r": 155,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 286.809,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52687,
    "c": 0.21716,
    "h": 317.6
  },
  "luminance": 0.12391
}

Semantic roles & 50–950 ramp

primary
#9B2DBA
secondary
#8BC979
accent
#E44467
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9B2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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