#9A1A8D#9A1A8D

#9A1A8D is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.3% C 0.199 H 333.0°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#9A1A8D
RGBrgb(154, 26, 141)
HSLhsl(306, 71%, 35%)
HSVhsv(306, 83%, 60%)
CMYKcmyk(0%, 83.1%, 8.4%, 39.6%)
CIE-LABlab(36.99, 61.37, -32.81)
CIE-LCHlch(36.99, 69.59, 331.87°)
OKLaboklab(48.34% 0.1773 -0.0902)
OKLCHoklch(48.34% 0.199 333)
XYZxyz(18.5037, 9.5335, 26.0598)
Luminance0.0953 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1A8D #1A9A27
analogous
#671A9A #9A1A8D #9A1A4D
triadic
#9A1A8D #8D9A1A #1A8D9A
tetradic
#9A1A8D #9A671A #1A9A27 #1A4D9A
square
#9A1A8D #9A671A #1A9A27 #1A4D9A
split-complementary
#9A1A8D #4D9A1A #1A9A67
monochromatic
#31082D #66115D #9A1A8D #CE23BD #E14DD2

Accessibility & contrast

On white

7.23
#9A1A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#9A1A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A1A8D
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1A8D#FFFFFF#000000##FFFFFF
##9A1A8D1.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C90
Deuteranopia (green-blind)
#495D8A
Tritanopia (blue-blind)
#A12A54
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #9a1a8d;
/* rgb */ color: rgb(154, 26, 141);
/* oklch */ color: oklch(48.3% 0.199 333.0);
Tailwind
colors: {
  custom: {
    50: '#bc69af',
    500: '#9a1a8d',
    950: '#000000',
  },
}
SCSS
$custom: #9a1a8d;
$custom-light: #bc69af;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1a8d",
  "rgb": {
    "r": 154,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 306.094,
    "s": 71.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.48339,
    "c": 0.19898,
    "h": 333
  },
  "luminance": 0.09532
}

Semantic roles & 50–950 ramp

primary
#9A1A8D
secondary
#4DC359
accent
#EE4C3A
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9A1A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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