#8A1A81#8A1A81

#8A1A81 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.182 H 331.9°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#8A1A81
RGBrgb(138, 26, 129)
HSLhsl(305, 68%, 32%)
HSVhsv(305, 81%, 54%)
CMYKcmyk(0%, 81.2%, 6.5%, 45.9%)
CIE-LABlab(33.41, 56.10, -31.23)
CIE-LCHlch(33.41, 64.21, 330.90°)
OKLaboklab(45.02% 0.1609 -0.086)
OKLCHoklch(45.02% 0.182 331.9)
XYZxyz(14.8131, 7.7283, 21.4762)
Luminance0.0773 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1A81 #1A8A23
analogous
#5B1A8A #8A1A81 #8A1A49
triadic
#8A1A81 #818A1A #1A818A
tetradic
#8A1A81 #8A5B1A #1A8A23 #1A498A
square
#8A1A81 #8A5B1A #1A8A23 #1A498A
split-complementary
#8A1A81 #498A1A #1A8A5B
monochromatic
#230721 #571051 #8A1A81 #BD24B1 #DC43CF

Accessibility & contrast

On white

8.25
#8A1A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8A1A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1A81
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1A81#FFFFFF#000000##FFFFFF
##8A1A811.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4584
Deuteranopia (green-blind)
#41547E
Tritanopia (blue-blind)
#90294D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1a81;
/* rgb */ color: rgb(138, 26, 129);
/* oklch */ color: oklch(45.0% 0.182 331.9);
Tailwind
colors: {
  custom: {
    50: '#b066a6',
    500: '#8a1a81',
    950: '#000000',
  },
}
SCSS
$custom: #8a1a81;
$custom-light: #b066a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1a81",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 129
  },
  "hsl": {
    "h": 304.821,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45024,
    "c": 0.18243,
    "h": 331.9
  },
  "luminance": 0.07727
}

Semantic roles & 50–950 ramp

primary
#8A1A81
secondary
#43BD4D
accent
#EB4B3D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1A81

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

Preview Lab → · Contrast checker → · Palette generator →

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