#9A2DBA#9A2DBA

#9A2DBA is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.5% C 0.217 H 317.2°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9A2DBA
RGBrgb(154, 45, 186)
HSLhsl(286, 61%, 45%)
HSVhsv(286, 76%, 73%)
CMYKcmyk(17.2%, 75.8%, 0%, 27.1%)
CIE-LABlab(41.68, 63.54, -52.35)
CIE-LCHlch(41.68, 82.32, 320.52°)
OKLaboklab(52.55% 0.159 -0.1473)
OKLCHoklch(52.55% 0.217 317.2)
XYZxyz(23.1264, 12.2930, 47.5994)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2DBA #4DBA2D
analogous
#532DBA #9A2DBA #BA2D93
triadic
#9A2DBA #BA9A2D #2DBA9A
tetradic
#9A2DBA #BA532D #4DBA2D #2D93BA
square
#9A2DBA #BA532D #4DBA2D #2D93BA
split-complementary
#9A2DBA #93BA2D #2DBA53
monochromatic
#481557 #712189 #9A2DBA #B650D5 #CB81E0

Accessibility & contrast

On white

6.07
#9A2DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#9A2DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2DBA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2DBA#FFFFFF#000000##FFFFFF
##9A2DBA1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#3065B7
Tritanopia (blue-blind)
#984C72
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9a2dba;
/* rgb */ color: rgb(154, 45, 186);
/* oklch */ color: oklch(52.5% 0.217 317.2);
Tailwind
colors: {
  custom: {
    50: '#bc72cf',
    500: '#9a2dba',
    950: '#000000',
  },
}
SCSS
$custom: #9a2dba;
$custom-light: #bc72cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2dba",
  "rgb": {
    "r": 154,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 286.383,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52548,
    "c": 0.21679,
    "h": 317.2
  },
  "luminance": 0.12292
}

Semantic roles & 50–950 ramp

primary
#9A2DBA
secondary
#8CC979
accent
#E44468
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9A2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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