#9A1B87#9A1B87

#9A1B87 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.1% C 0.194 H 335.4°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#9A1B87
RGBrgb(154, 27, 135)
HSLhsl(309, 70%, 35%)
HSVhsv(309, 82%, 60%)
CMYKcmyk(0%, 82.5%, 12.3%, 39.6%)
CIE-LABlab(36.75, 60.24, -29.49)
CIE-LCHlch(36.75, 67.07, 333.92°)
OKLaboklab(48.06% 0.1764 -0.0807)
OKLCHoklch(48.06% 0.194 335.4)
XYZxyz(18.0918, 9.4049, 23.7795)
Luminance0.0940 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A1B87 #1B9A2E
analogous
#6D1B9A #9A1B87 #9A1B48
triadic
#9A1B87 #879A1B #1B879A
tetradic
#9A1B87 #9A6D1B #1B9A2E #1B489A
square
#9A1B87 #9A6D1B #1B9A2E #1B489A
split-complementary
#9A1B87 #489A1B #1B9A6D
monochromatic
#32092C #661259 #9A1B87 #CE24B5 #E04FCA

Accessibility & contrast

On white

7.29
#9A1B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#9A1B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #9A1B87
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A1B87#FFFFFF#000000##FFFFFF
##9A1B871.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4B8A
Deuteranopia (green-blind)
#4C5D84
Tritanopia (blue-blind)
#A22751
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #9a1b87;
/* rgb */ color: rgb(154, 27, 135);
/* oklch */ color: oklch(48.1% 0.194 335.4);
Tailwind
colors: {
  custom: {
    50: '#bc69aa',
    500: '#9a1b87',
    950: '#000000',
  },
}
SCSS
$custom: #9a1b87;
$custom-light: #bc69aa;
$custom-dark: #000000;
JSON
{
  "hex": "#9a1b87",
  "rgb": {
    "r": 154,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 308.976,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.48064,
    "c": 0.19399,
    "h": 335.4
  },
  "luminance": 0.09403
}

Semantic roles & 50–950 ramp

primary
#9A1B87
secondary
#4EC360
accent
#ED553B
background
#FCF6FA
surface
#F8ECF4
border
#D1C7CE
text
#120710
muted
#817A7F

Preview Lab

Preview with #9A1B87

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

Preview Lab → · Contrast checker → · Palette generator →

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