#8A1A82#8A1A82

#8A1A82 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.183 H 331.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#8A1A82
RGBrgb(138, 26, 130)
HSLhsl(304, 68%, 32%)
HSVhsv(304, 81%, 54%)
CMYKcmyk(0%, 81.2%, 5.8%, 45.9%)
CIE-LABlab(33.47, 56.26, -31.76)
CIE-LCHlch(33.47, 64.61, 330.55°)
OKLaboklab(45.08% 0.1609 -0.0876)
OKLCHoklch(45.08% 0.183 331.4)
XYZxyz(14.8799, 7.7550, 21.8279)
Luminance0.0775 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1A82 #1A8A22
analogous
#5A1A8A #8A1A82 #8A1A4A
triadic
#8A1A82 #828A1A #1A828A
tetradic
#8A1A82 #8A5A1A #1A8A22 #1A4A8A
square
#8A1A82 #8A5A1A #1A8A22 #1A4A8A
split-complementary
#8A1A82 #4A8A1A #1A8A5A
monochromatic
#230721 #571051 #8A1A82 #BD24B3 #DC43D1

Accessibility & contrast

On white

8.23
#8A1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1A82
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1A82#FFFFFF#000000##FFFFFF
##8A1A821.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4585
Deuteranopia (green-blind)
#40547F
Tritanopia (blue-blind)
#90294E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1a82;
/* rgb */ color: rgb(138, 26, 130);
/* oklch */ color: oklch(45.1% 0.183 331.4);
Tailwind
colors: {
  custom: {
    50: '#b066a7',
    500: '#8a1a82',
    950: '#000000',
  },
}
SCSS
$custom: #8a1a82;
$custom-light: #b066a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1a82",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 304.286,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.45083,
    "c": 0.18317,
    "h": 331.4
  },
  "luminance": 0.07754
}

Semantic roles & 50–950 ramp

primary
#8A1A82
secondary
#43BD4C
accent
#EB493D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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