#8A127F#8A127F

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

Color values

HEX#8A127F
RGBrgb(138, 18, 127)
HSLhsl(306, 77%, 31%)
HSVhsv(306, 87%, 54%)
CMYKcmyk(0%, 87%, 8%, 45.9%)
CIE-LABlab(32.63, 57.71, -31.21)
CIE-LCHlch(32.63, 65.61, 331.60°)
OKLaboklab(44.43% 0.1665 -0.0859)
OKLCHoklch(44.43% 0.187 332.7)
XYZxyz(14.5284, 7.3695, 20.7318)
Luminance0.0737 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A127F #128A1D
analogous
#59128A #8A127F #8A1243
triadic
#8A127F #7F8A12 #127F8A
tetradic
#8A127F #8A5912 #128A1D #12438A
square
#8A127F #8A5912 #128A1D #12438A
split-complementary
#8A127F #438A12 #128A59
monochromatic
#1E041B #540B4D #8A127F #C019B1 #E432D4

Accessibility & contrast

On white

8.49
#8A127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A127F
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A127F#FFFFFF#000000##FFFFFF
##8A127F1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054282
Deuteranopia (green-blind)
#3F527C
Tritanopia (blue-blind)
#90234B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #8a127f;
/* rgb */ color: rgb(138, 18, 127);
/* oklch */ color: oklch(44.4% 0.187 332.7);
Tailwind
colors: {
  custom: {
    50: '#b063a4',
    500: '#8a127f',
    950: '#000000',
  },
}
SCSS
$custom: #8a127f;
$custom-light: #b063a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a127f",
  "rgb": {
    "r": 138,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 305.5,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.44434,
    "c": 0.18734,
    "h": 332.7
  },
  "luminance": 0.07368
}

Semantic roles & 50–950 ramp

primary
#8A127F
secondary
#39BF45
accent
#F34634
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A127F

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

Preview Lab → · Contrast checker → · Palette generator →

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