#8A127E#8A127E

#8A127E is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.4% C 0.187 H 333.1°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#8A127E
RGBrgb(138, 18, 126)
HSLhsl(306, 77%, 31%)
HSVhsv(306, 87%, 54%)
CMYKcmyk(0%, 87%, 8.7%, 45.9%)
CIE-LABlab(32.58, 57.56, -30.67)
CIE-LCHlch(32.58, 65.22, 331.95°)
OKLaboklab(44.38% 0.1665 -0.0844)
OKLCHoklch(44.38% 0.187 333.1)
XYZxyz(14.4635, 7.3435, 20.3903)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A127E #128A1E
analogous
#5A128A #8A127E #8A1242
triadic
#8A127E #7E8A12 #127E8A
tetradic
#8A127E #8A5A12 #128A1E #12428A
square
#8A127E #8A5A12 #128A1E #12428A
split-complementary
#8A127E #428A12 #128A5A
monochromatic
#1E041B #540B4D #8A127E #C019AF #E432D2

Accessibility & contrast

On white

8.51
#8A127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#8A127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A127E
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A127E#FFFFFF#000000##FFFFFF
##8A127E1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084281
Deuteranopia (green-blind)
#40527B
Tritanopia (blue-blind)
#91234A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a127e;
/* rgb */ color: rgb(138, 18, 126);
/* oklch */ color: oklch(44.4% 0.187 333.1);
Tailwind
colors: {
  custom: {
    50: '#b063a4',
    500: '#8a127e',
    950: '#000000',
  },
}
SCSS
$custom: #8a127e;
$custom-light: #b063a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a127e",
  "rgb": {
    "r": 138,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 306,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.44375,
    "c": 0.18663,
    "h": 333.1
  },
  "luminance": 0.07342
}

Semantic roles & 50–950 ramp

primary
#8A127E
secondary
#39BF47
accent
#F34734
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A127E

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

Preview Lab → · Contrast checker → · Palette generator →

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