#9A2DB9#9A2DB9

#9A2DB9 is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.5% C 0.216 H 317.5°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9A2DB9
RGBrgb(154, 45, 185)
HSLhsl(287, 61%, 45%)
HSVhsv(287, 76%, 73%)
CMYKcmyk(16.8%, 75.7%, 0%, 27.5%)
CIE-LABlab(41.61, 63.34, -51.86)
CIE-LCHlch(41.61, 81.87, 320.69°)
OKLaboklab(52.48% 0.1592 -0.1459)
OKLCHoklch(52.48% 0.216 317.5)
XYZxyz(23.0205, 12.2506, 47.0415)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A2DB9 #4CB92D
analogous
#542DB9 #9A2DB9 #B92D92
triadic
#9A2DB9 #B99A2D #2DB99A
tetradic
#9A2DB9 #B9542D #4CB92D #2D92B9
square
#9A2DB9 #B9542D #4CB92D #2D92B9
split-complementary
#9A2DB9 #92B92D #2DB954
monochromatic
#481557 #712188 #9A2DB9 #B74FD4 #CB80E0

Accessibility & contrast

On white

6.09
#9A2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#9A2DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A2DB9
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A2DB9#FFFFFF#000000##FFFFFF
##9A2DB91.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#3165B6
Tritanopia (blue-blind)
#994B72
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #9a2db9;
/* rgb */ color: rgb(154, 45, 185);
/* oklch */ color: oklch(52.5% 0.216 317.5);
Tailwind
colors: {
  custom: {
    50: '#bc72cf',
    500: '#9a2db9',
    950: '#000000',
  },
}
SCSS
$custom: #9a2db9;
$custom-light: #bc72cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a2db9",
  "rgb": {
    "r": 154,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 286.714,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5248,
    "c": 0.21593,
    "h": 317.5
  },
  "luminance": 0.1225
}

Semantic roles & 50–950 ramp

primary
#9A2DB9
secondary
#8BC979
accent
#E44467
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #9A2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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