#8A1A8F#8A1A8F

#8A1A8F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.9% C 0.193 H 326.2°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#8A1A8F
RGBrgb(138, 26, 143)
HSLhsl(297, 69%, 33%)
HSVhsv(297, 82%, 56%)
CMYKcmyk(3.5%, 81.8%, 0%, 43.9%)
CIE-LABlab(34.24, 58.40, -38.58)
CIE-LCHlch(34.24, 69.99, 326.55°)
OKLaboklab(45.89% 0.1604 -0.1074)
OKLCHoklch(45.89% 0.193 326.2)
XYZxyz(15.8082, 8.1263, 26.7172)
Luminance0.0813 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1A8F #1F8F1A
analogous
#4F1A8F #8A1A8F #8F1A59
triadic
#8A1A8F #8F8A1A #1A8F8A
tetradic
#8A1A8F #8F4F1A #1F8F1A #1A598F
square
#8A1A8F #8F4F1A #1F8F1A #1A598F
split-complementary
#8A1A8F #598F1A #1A8F4F
monochromatic
#260727 #58115B #8A1A8F #BC23C3 #D746DD

Accessibility & contrast

On white

8.00
#8A1A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A1A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1A8F
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1A8F#FFFFFF#000000##FFFFFF
##8A1A8F1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#38558C
Tritanopia (blue-blind)
#8E3155
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1a8f;
/* rgb */ color: rgb(138, 26, 143);
/* oklch */ color: oklch(45.9% 0.193 326.2);
Tailwind
colors: {
  custom: {
    50: '#b066b0',
    500: '#8a1a8f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1a8f;
$custom-light: #b066b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1a8f",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 297.436,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45886,
    "c": 0.19306,
    "h": 326.2
  },
  "luminance": 0.08125
}

Semantic roles & 50–950 ramp

primary
#8A1A8F
secondary
#4BBF46
accent
#EC3C43
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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