#8A1B9E#8A1B9E

#8A1B9E is a mid, highly saturated purple. Relative luminance 0.087; OKLCH L 47.0% C 0.204 H 320.7°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#8A1B9E
RGBrgb(138, 27, 158)
HSLhsl(291, 71%, 36%)
HSVhsv(291, 83%, 62%)
CMYKcmyk(12.7%, 82.9%, 0%, 38%)
CIE-LABlab(35.31, 60.77, -46.02)
CIE-LCHlch(35.31, 76.23, 322.86°)
OKLaboklab(46.95% 0.158 -0.1292)
OKLCHoklch(46.95% 0.204 320.7)
XYZxyz(17.0440, 8.6567, 33.1143)
Luminance0.0866 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1B9E #2F9E1B
analogous
#491B9E #8A1B9E #9E1B71
triadic
#8A1B9E #9E8A1B #1B9E8A
tetradic
#8A1B9E #9E491B #2F9E1B #1B719E
square
#8A1B9E #9E491B #2F9E1B #1B719E
split-complementary
#8A1B9E #719E1B #1B9E49
monochromatic
#2F0935 #5C126A #8A1B9E #B824D2 #CC52E1

Accessibility & contrast

On white

7.69
#8A1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8A1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1B9E
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1B9E#FFFFFF#000000##FFFFFF
##8A1B9E1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#2C579B
Tritanopia (blue-blind)
#8B395E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a1b9e;
/* rgb */ color: rgb(138, 27, 158);
/* oklch */ color: oklch(47.0% 0.204 320.7);
Tailwind
colors: {
  custom: {
    50: '#b067bb',
    500: '#8a1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1b9e;
$custom-light: #b067bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1b9e",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 290.84,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46953,
    "c": 0.20411,
    "h": 320.7
  },
  "luminance": 0.08656
}

Semantic roles & 50–950 ramp

primary
#8A1B9E
secondary
#62C451
accent
#EE3A56
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

#8A1B9E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva