#9A1D8A#9A1D8A

#9A1D8A is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.4% C 0.194 H 334.2°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#9A1D8A
RGBrgb(154, 29, 138)
HSLhsl(308, 68%, 36%)
HSVhsv(308, 81%, 60%)
CMYKcmyk(0%, 81.2%, 10.4%, 39.6%)
CIE-LABlab(37.09, 60.17, -30.81)
CIE-LCHlch(37.09, 67.60, 332.88°)
OKLaboklab(48.36% 0.1751 -0.0845)
OKLCHoklch(48.36% 0.194 334.2)
XYZxyz(18.3534, 9.5854, 24.9234)
Luminance0.0958 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1D8A #1D9A2D
analogous
#6B1D9A #9A1D8A #9A1D4B
triadic
#9A1D8A #8A9A1D #1D8A9A
tetradic
#9A1D8A #9A6B1D #1D9A2D #1D4B9A
square
#9A1D8A #9A6B1D #1D9A2D #1D4B9A
split-complementary
#9A1D8A #4B9A1D #1D9A6B
monochromatic
#330A2E #66135C #9A1D8A #CE27B8 #DF53CD

Accessibility & contrast

On white

7.20
#9A1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#9A1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A1D8A
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1D8A#FFFFFF#000000##FFFFFF
##9A1D8A1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4C8D
Deuteranopia (green-blind)
#4C5E87
Tritanopia (blue-blind)
#A22A53
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9a1d8a;
/* rgb */ color: rgb(154, 29, 138);
/* oklch */ color: oklch(48.4% 0.194 334.2);
Tailwind
colors: {
  custom: {
    50: '#bc6aac',
    500: '#9a1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #9a1d8a;
$custom-light: #bc6aac;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1d8a",
  "rgb": {
    "r": 154,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 307.68,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.48355,
    "c": 0.19437,
    "h": 334.2
  },
  "luminance": 0.09584
}

Semantic roles & 50–950 ramp

primary
#9A1D8A
secondary
#51C260
accent
#EB533D
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9A1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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