#8A127B#8A127B

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

Color values

HEX#8A127B
RGBrgb(138, 18, 123)
HSLhsl(308, 77%, 31%)
HSVhsv(308, 87%, 54%)
CMYKcmyk(0%, 87%, 10.9%, 45.9%)
CIE-LABlab(32.41, 57.11, -29.05)
CIE-LCHlch(32.41, 64.07, 333.04°)
OKLaboklab(44.2% 0.1664 -0.0797)
OKLCHoklch(44.2% 0.185 334.4)
XYZxyz(14.2729, 7.2673, 19.3861)
Luminance0.0727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A127B #128A21
analogous
#5D128A #8A127B #8A123F
triadic
#8A127B #7B8A12 #127B8A
tetradic
#8A127B #8A5D12 #128A21 #123F8A
square
#8A127B #8A5D12 #128A21 #123F8A
split-complementary
#8A127B #3F8A12 #128A5D
monochromatic
#1E041A #540B4B #8A127B #C019AB #E432CE

Accessibility & contrast

On white

8.56
#8A127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A127B
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A127B#FFFFFF#000000##FFFFFF
##8A127B1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E417E
Deuteranopia (green-blind)
#415278
Tritanopia (blue-blind)
#912148
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #8a127b;
/* rgb */ color: rgb(138, 18, 123);
/* oklch */ color: oklch(44.2% 0.185 334.4);
Tailwind
colors: {
  custom: {
    50: '#b063a1',
    500: '#8a127b',
    950: '#000000',
  },
}
SCSS
$custom: #8a127b;
$custom-light: #b063a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a127b",
  "rgb": {
    "r": 138,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 307.5,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.44201,
    "c": 0.18453,
    "h": 334.4
  },
  "luminance": 0.07266
}

Semantic roles & 50–950 ramp

primary
#8A127B
secondary
#39BF4A
accent
#F34C34
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11060F
muted
#807A7F

Preview Lab

Preview with #8A127B

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

Preview Lab → · Contrast checker → · Palette generator →

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