#9A2DB2#9A2DB2

#9A2DB2 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.0% C 0.210 H 319.6°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#9A2DB2
RGBrgb(154, 45, 178)
HSLhsl(289, 60%, 44%)
HSVhsv(289, 75%, 70%)
CMYKcmyk(13.5%, 74.7%, 0%, 30.2%)
CIE-LABlab(41.16, 62.02, -48.47)
CIE-LCHlch(41.16, 78.71, 321.99°)
OKLaboklab(52.01% 0.16 -0.136)
OKLCHoklch(52.01% 0.21 319.6)
XYZxyz(22.2997, 11.9623, 43.2452)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2DB2 #45B22D
analogous
#572DB2 #9A2DB2 #B22D87
triadic
#9A2DB2 #B29A2D #2DB29A
tetradic
#9A2DB2 #B2572D #45B22D #2D87B2
square
#9A2DB2 #B2572D #45B22D #2D87B2
split-complementary
#9A2DB2 #87B22D #2DB257
monochromatic
#451450 #702181 #9A2DB2 #B94BD1 #CC7CDE

Accessibility & contrast

On white

6.19
#9A2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#9A2DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2DB2
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2DB2#FFFFFF#000000##FFFFFF
##9A2DB21.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9a2db2;
/* rgb */ color: rgb(154, 45, 178);
/* oklch */ color: oklch(52.0% 0.210 319.6);
Tailwind
colors: {
  custom: {
    50: '#bc71ca',
    500: '#9a2db2',
    950: '#000000',
  },
}
SCSS
$custom: #9a2db2;
$custom-light: #bc71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2db2",
  "rgb": {
    "r": 154,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 289.173,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.52012,
    "c": 0.20993,
    "h": 319.6
  },
  "luminance": 0.11961
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9A2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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