#9A2DB6#9A2DB6

#9A2DB6 is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.3% C 0.213 H 318.4°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9A2DB6
RGBrgb(154, 45, 182)
HSLhsl(288, 60%, 45%)
HSVhsv(288, 75%, 71%)
CMYKcmyk(15.4%, 75.3%, 0%, 28.6%)
CIE-LABlab(41.41, 62.77, -50.42)
CIE-LCHlch(41.41, 80.51, 321.23°)
OKLaboklab(52.28% 0.1595 -0.1417)
OKLCHoklch(52.28% 0.213 318.4)
XYZxyz(22.7071, 12.1253, 45.3912)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2DB6 #49B62D
analogous
#562DB6 #9A2DB6 #B62D8E
triadic
#9A2DB6 #B69A2D #2DB69A
tetradic
#9A2DB6 #B6562D #49B62D #2D8EB6
square
#9A2DB6 #B6562D #49B62D #2D8EB6
split-complementary
#9A2DB6 #8EB62D #2DB656
monochromatic
#471554 #702185 #9A2DB6 #B84DD3 #CB7EDF

Accessibility & contrast

On white

6.13
#9A2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#9A2DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2DB6
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2DB6#FFFFFF#000000##FFFFFF
##9A2DB61.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBA
Deuteranopia (green-blind)
#3465B3
Tritanopia (blue-blind)
#994A70
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9a2db6;
/* rgb */ color: rgb(154, 45, 182);
/* oklch */ color: oklch(52.3% 0.213 318.4);
Tailwind
colors: {
  custom: {
    50: '#bc72cd',
    500: '#9a2db6',
    950: '#000000',
  },
}
SCSS
$custom: #9a2db6;
$custom-light: #bc72cd;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2db6",
  "rgb": {
    "r": 154,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 287.737,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.52277,
    "c": 0.21335,
    "h": 318.4
  },
  "luminance": 0.12124
}

Semantic roles & 50–950 ramp

primary
#9A2DB6
secondary
#88C877
accent
#E34465
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120913
muted
#817B82

Preview Lab

Preview with #9A2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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