#8A127A#8A127A

#8A127A is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.184 H 334.8°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#8A127A
RGBrgb(138, 18, 122)
HSLhsl(308, 77%, 31%)
HSVhsv(308, 87%, 54%)
CMYKcmyk(0%, 87%, 11.6%, 45.9%)
CIE-LABlab(32.35, 56.96, -28.51)
CIE-LCHlch(32.35, 63.70, 333.41°)
OKLaboklab(44.14% 0.1664 -0.0781)
OKLCHoklch(44.14% 0.184 334.8)
XYZxyz(14.2106, 7.2424, 19.0581)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A127A #128A22
analogous
#5E128A #8A127A #8A123E
triadic
#8A127A #7A8A12 #127A8A
tetradic
#8A127A #8A5E12 #128A22 #123E8A
square
#8A127A #8A5E12 #128A22 #123E8A
split-complementary
#8A127A #3E8A12 #128A5E
monochromatic
#1E041A #540B4A #8A127A #C019AA #E432CD

Accessibility & contrast

On white

8.58
#8A127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#8A127A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A127A
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A127A#FFFFFF#000000##FFFFFF
##8A127A1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10417D
Deuteranopia (green-blind)
#425277
Tritanopia (blue-blind)
#912048
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a127a;
/* rgb */ color: rgb(138, 18, 122);
/* oklch */ color: oklch(44.1% 0.184 334.8);
Tailwind
colors: {
  custom: {
    50: '#b063a1',
    500: '#8a127a',
    950: '#000000',
  },
}
SCSS
$custom: #8a127a;
$custom-light: #b063a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a127a",
  "rgb": {
    "r": 138,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 308,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.44143,
    "c": 0.18384,
    "h": 334.8
  },
  "luminance": 0.07241
}

Semantic roles & 50–950 ramp

primary
#8A127A
secondary
#39BF4B
accent
#F34E34
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11060F
muted
#807A7E

Preview Lab

Preview with #8A127A

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

Preview Lab → · Contrast checker → · Palette generator →

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