#8A1A7E#8A1A7E

#8A1A7E is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.180 H 333.2°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#8A1A7E
RGBrgb(138, 26, 126)
HSLhsl(306, 68%, 32%)
HSVhsv(306, 81%, 54%)
CMYKcmyk(0%, 81.2%, 8.7%, 45.9%)
CIE-LABlab(33.24, 55.63, -29.62)
CIE-LCHlch(33.24, 63.02, 331.97°)
OKLaboklab(44.85% 0.1608 -0.0814)
OKLCHoklch(44.85% 0.18 333.2)
XYZxyz(14.6166, 7.6497, 20.4413)
Luminance0.0765 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1A7E #1A8A26
analogous
#5E1A8A #8A1A7E #8A1A46
triadic
#8A1A7E #7E8A1A #1A7E8A
tetradic
#8A1A7E #8A5E1A #1A8A26 #1A468A
square
#8A1A7E #8A5E1A #1A8A26 #1A468A
split-complementary
#8A1A7E #468A1A #1A8A5E
monochromatic
#230720 #57104F #8A1A7E #BD24AD #DC43CB

Accessibility & contrast

On white

8.30
#8A1A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#8A1A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1A7E
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1A7E#FFFFFF#000000##FFFFFF
##8A1A7E1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144481
Deuteranopia (green-blind)
#42547B
Tritanopia (blue-blind)
#90274C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a1a7e;
/* rgb */ color: rgb(138, 26, 126);
/* oklch */ color: oklch(44.9% 0.180 333.2);
Tailwind
colors: {
  custom: {
    50: '#b066a4',
    500: '#8a1a7e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1a7e;
$custom-light: #b066a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1a7e",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 306.429,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.4485,
    "c": 0.18022,
    "h": 333.2
  },
  "luminance": 0.07648
}

Semantic roles & 50–950 ramp

primary
#8A1A7E
secondary
#43BD50
accent
#EB4F3D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A1A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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