#8A1BA1#8A1BA1

#8A1BA1 is a mid, highly saturated purple. Relative luminance 0.088; OKLCH L 47.2% C 0.207 H 319.7°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#8A1BA1
RGBrgb(138, 27, 161)
HSLhsl(290, 71%, 37%)
HSVhsv(290, 83%, 63%)
CMYKcmyk(14.3%, 83.2%, 0%, 36.9%)
CIE-LABlab(35.52, 61.32, -47.51)
CIE-LCHlch(35.52, 77.57, 322.23°)
OKLaboklab(47.16% 0.1576 -0.1335)
OKLCHoklch(47.16% 0.207 319.7)
XYZxyz(17.3054, 8.7613, 34.4909)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1BA1 #32A11B
analogous
#471BA1 #8A1BA1 #A11B75
triadic
#8A1BA1 #A18A1B #1BA18A
tetradic
#8A1BA1 #A1471B #32A11B #1B75A1
square
#8A1BA1 #A1471B #32A11B #1B75A1
split-complementary
#8A1BA1 #75A11B #1BA147
monochromatic
#300938 #5D126D #8A1BA1 #B724D5 #CA54E2

Accessibility & contrast

On white

7.63
#8A1BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8A1BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1BA1
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1BA1#FFFFFF#000000##FFFFFF
##8A1BA11.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#28579E
Tritanopia (blue-blind)
#8A3A60
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a1ba1;
/* rgb */ color: rgb(138, 27, 161);
/* oklch */ color: oklch(47.2% 0.207 319.7);
Tailwind
colors: {
  custom: {
    50: '#b068bd',
    500: '#8a1ba1',
    950: '#000000',
  },
}
SCSS
$custom: #8a1ba1;
$custom-light: #b068bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1ba1",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 289.701,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47163,
    "c": 0.20654,
    "h": 319.7
  },
  "luminance": 0.0876
}

Semantic roles & 50–950 ramp

primary
#8A1BA1
secondary
#66C552
accent
#EE3A59
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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