#9D2DBA#9D2DBA

#9D2DBA is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 53.0% C 0.218 H 318.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#9D2DBA
RGBrgb(157, 45, 186)
HSLhsl(288, 61%, 45%)
HSVhsv(288, 76%, 73%)
CMYKcmyk(15.6%, 75.8%, 0%, 27.1%)
CIE-LABlab(42.14, 64.12, -51.58)
CIE-LCHlch(42.14, 82.29, 321.19°)
OKLaboklab(52.97% 0.1627 -0.145)
OKLCHoklch(52.97% 0.218 318.3)
XYZxyz(23.7047, 12.5911, 47.6266)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D2DBA #4ABA2D
analogous
#572DBA #9D2DBA #BA2D90
triadic
#9D2DBA #BA9D2D #2DBA9D
tetradic
#9D2DBA #BA572D #4ABA2D #2D90BA
square
#9D2DBA #BA572D #4ABA2D #2D90BA
split-complementary
#9D2DBA #90BA2D #2DBA57
monochromatic
#4A1557 #732189 #9D2DBA #B950D5 #CD81E0

Accessibility & contrast

On white

5.97
#9D2DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#9D2DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9D2DBA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D2DBA#FFFFFF#000000##FFFFFF
##9D2DBA1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9d2dba;
/* rgb */ color: rgb(157, 45, 186);
/* oklch */ color: oklch(53.0% 0.218 318.3);
Tailwind
colors: {
  custom: {
    50: '#be72cf',
    500: '#9d2dba',
    950: '#000000',
  },
}
SCSS
$custom: #9d2dba;
$custom-light: #be72cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9d2dba",
  "rgb": {
    "r": 157,
    "g": 45,
    "b": 186
  },
  "hsl": {
    "h": 287.66,
    "s": 61.039,
    "l": 45.294
  },
  "oklch": {
    "l": 0.52968,
    "c": 0.21791,
    "h": 318.3
  },
  "luminance": 0.1259
}

Semantic roles & 50–950 ramp

primary
#9D2DBA
secondary
#8AC979
accent
#E44465
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #9D2DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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