#8A127C#8A127C

#8A127C is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.3% C 0.185 H 334.0°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#8A127C
RGBrgb(138, 18, 124)
HSLhsl(307, 77%, 31%)
HSVhsv(307, 87%, 54%)
CMYKcmyk(0%, 87%, 10.1%, 45.9%)
CIE-LABlab(32.46, 57.26, -29.59)
CIE-LCHlch(32.46, 64.45, 332.67°)
OKLaboklab(44.26% 0.1664 -0.0813)
OKLCHoklch(44.26% 0.185 334)
XYZxyz(14.3358, 7.2924, 19.7174)
Luminance0.0729 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A127C #128A20
analogous
#5C128A #8A127C #8A1240
triadic
#8A127C #7C8A12 #127C8A
tetradic
#8A127C #8A5C12 #128A20 #12408A
square
#8A127C #8A5C12 #128A20 #12408A
split-complementary
#8A127C #408A12 #128A5C
monochromatic
#1E041B #540B4B #8A127C #C019AD #E432CF

Accessibility & contrast

On white

8.54
#8A127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#8A127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A127C
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A127C#FFFFFF#000000##FFFFFF
##8A127C1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C427F
Deuteranopia (green-blind)
#415279
Tritanopia (blue-blind)
#912149
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a127c;
/* rgb */ color: rgb(138, 18, 124);
/* oklch */ color: oklch(44.3% 0.185 334.0);
Tailwind
colors: {
  custom: {
    50: '#b063a2',
    500: '#8a127c',
    950: '#000000',
  },
}
SCSS
$custom: #8a127c;
$custom-light: #b063a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a127c",
  "rgb": {
    "r": 138,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 307,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.44258,
    "c": 0.18523,
    "h": 334
  },
  "luminance": 0.07291
}

Semantic roles & 50–950 ramp

primary
#8A127C
secondary
#39BF49
accent
#F34B34
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A127C

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

Preview Lab → · Contrast checker → · Palette generator →

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