#8A1A8E#8A1A8E

#8A1A8E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.192 H 326.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#8A1A8E
RGBrgb(138, 26, 142)
HSLhsl(298, 69%, 33%)
HSVhsv(298, 82%, 56%)
CMYKcmyk(2.8%, 81.7%, 0%, 44.3%)
CIE-LABlab(34.18, 58.23, -38.07)
CIE-LCHlch(34.18, 69.57, 326.83°)
OKLaboklab(45.82% 0.1605 -0.1059)
OKLCHoklch(45.82% 0.192 326.6)
XYZxyz(15.7328, 8.0962, 26.3200)
Luminance0.0809 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1A8E #1E8E1A
analogous
#501A8E #8A1A8E #8E1A58
triadic
#8A1A8E #8E8A1A #1A8E8A
tetradic
#8A1A8E #8E501A #1E8E1A #1A588E
square
#8A1A8E #8E501A #1E8E1A #1A588E
split-complementary
#8A1A8E #588E1A #1A8E50
monochromatic
#250727 #58115A #8A1A8E #BC23C2 #D845DD

Accessibility & contrast

On white

8.02
#8A1A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#8A1A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1A8E
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1A8E#FFFFFF#000000##FFFFFF
##8A1A8E1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#39558B
Tritanopia (blue-blind)
#8E3055
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8a1a8e;
/* rgb */ color: rgb(138, 26, 142);
/* oklch */ color: oklch(45.8% 0.192 326.6);
Tailwind
colors: {
  custom: {
    50: '#b066af',
    500: '#8a1a8e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1a8e;
$custom-light: #b066af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1a8e",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 297.931,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45821,
    "c": 0.19228,
    "h": 326.6
  },
  "luminance": 0.08095
}

Semantic roles & 50–950 ramp

primary
#8A1A8E
secondary
#4ABE45
accent
#EC3C42
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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