#9A1D9D#9A1D9D

#9A1D9D is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.5% C 0.208 H 327.1°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#9A1D9D
RGBrgb(154, 29, 157)
HSLhsl(299, 69%, 36%)
HSVhsv(299, 82%, 62%)
CMYKcmyk(1.9%, 81.5%, 0%, 38.4%)
CIE-LABlab(38.17, 63.16, -40.69)
CIE-LCHlch(38.17, 75.13, 327.21°)
OKLaboklab(49.48% 0.1748 -0.1131)
OKLCHoklch(49.48% 0.208 327.1)
XYZxyz(19.8513, 10.1845, 32.8120)
Luminance0.1018 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1D9D #209D1D
analogous
#5A1D9D #9A1D9D #9D1D60
triadic
#9A1D9D #9D9A1D #1D9D9A
tetradic
#9A1D9D #9D5A1D #209D1D #1D609D
square
#9A1D9D #9D5A1D #209D1D #1D609D
split-complementary
#9A1D9D #609D1D #1D9D5A
monochromatic
#350A36 #671369 #9A1D9D #CD27D1 #DC55E0

Accessibility & contrast

On white

6.92
#9A1D9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#9A1D9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A1D9D
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1D9D#FFFFFF#000000##FFFFFF
##9A1D9D1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#415F9A
Tritanopia (blue-blind)
#9F355E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #9a1d9d;
/* rgb */ color: rgb(154, 29, 157);
/* oklch */ color: oklch(49.5% 0.208 327.1);
Tailwind
colors: {
  custom: {
    50: '#bc6bba',
    500: '#9a1d9d',
    950: '#000000',
  },
}
SCSS
$custom: #9a1d9d;
$custom-light: #bc6bba;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1d9d",
  "rgb": {
    "r": 154,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 298.594,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.49476,
    "c": 0.20823,
    "h": 327.1
  },
  "luminance": 0.10183
}

Semantic roles & 50–950 ramp

primary
#9A1D9D
secondary
#56C353
accent
#EC3C40
background
#FCF6FB
surface
#F8ECF6
border
#D1C7D0
text
#120812
muted
#817A81

Preview Lab

Preview with #9A1D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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