#9A1D8D#9A1D8D

#9A1D8D is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.197 H 333.0°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#9A1D8D
RGBrgb(154, 29, 141)
HSLhsl(306, 68%, 36%)
HSVhsv(306, 81%, 60%)
CMYKcmyk(0%, 81.2%, 8.4%, 39.6%)
CIE-LABlab(37.25, 60.62, -32.40)
CIE-LCHlch(37.25, 68.74, 331.88°)
OKLaboklab(48.52% 0.1752 -0.0891)
OKLCHoklch(48.52% 0.197 333)
XYZxyz(18.5736, 9.6735, 26.0831)
Luminance0.0967 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1D8D #1D9A2A
analogous
#681D9A #9A1D8D #9A1D4E
triadic
#9A1D8D #8D9A1D #1D8D9A
tetradic
#9A1D8D #9A681D #1D9A2A #1D4E9A
square
#9A1D8D #9A681D #1D9A2A #1D4E9A
split-complementary
#9A1D8D #4E9A1D #1D9A68
monochromatic
#330A2F #66135E #9A1D8D #CE27BC #DF53D0

Accessibility & contrast

On white

7.16
#9A1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#9A1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A1D8D
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1D8D#FFFFFF#000000##FFFFFF
##9A1D8D1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154C90
Deuteranopia (green-blind)
#4A5E8A
Tritanopia (blue-blind)
#A12C55
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #9a1d8d;
/* rgb */ color: rgb(154, 29, 141);
/* oklch */ color: oklch(48.5% 0.197 333.0);
Tailwind
colors: {
  custom: {
    50: '#bc6aaf',
    500: '#9a1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #9a1d8d;
$custom-light: #bc6aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1d8d",
  "rgb": {
    "r": 154,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 306.24,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.48523,
    "c": 0.1965,
    "h": 333
  },
  "luminance": 0.09672
}

Semantic roles & 50–950 ramp

primary
#9A1D8D
secondary
#51C25D
accent
#EB4F3D
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9A1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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