#8A128F#8A128F

#8A128F is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.4% C 0.199 H 326.3°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#8A128F
RGBrgb(138, 18, 143)
HSLhsl(298, 78%, 32%)
HSVhsv(298, 87%, 56%)
CMYKcmyk(3.5%, 87.4%, 0%, 43.9%)
CIE-LABlab(33.61, 60.26, -39.60)
CIE-LCHlch(33.61, 72.11, 326.69°)
OKLaboklab(45.43% 0.1656 -0.1104)
OKLCHoklch(45.43% 0.199 326.3)
XYZxyz(15.6552, 7.8202, 26.6662)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A128F #178F12
analogous
#4C128F #8A128F #8F1256
triadic
#8A128F #8F8A12 #128F8A
tetradic
#8A128F #8F4C12 #178F12 #12568F
square
#8A128F #8F4C12 #178F12 #12568F
split-complementary
#8A128F #568F12 #128F4C
monochromatic
#210422 #560B59 #8A128F #BE19C5 #DF36E6

Accessibility & contrast

On white

8.19
#8A128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#8A128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A128F
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A128F#FFFFFF#000000##FFFFFF
##8A128F1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#35548C
Tritanopia (blue-blind)
#8E2D54
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a128f;
/* rgb */ color: rgb(138, 18, 143);
/* oklch */ color: oklch(45.4% 0.199 326.3);
Tailwind
colors: {
  custom: {
    50: '#b064b0',
    500: '#8a128f',
    950: '#000000',
  },
}
SCSS
$custom: #8a128f;
$custom-light: #b064b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a128f",
  "rgb": {
    "r": 138,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 297.6,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.45434,
    "c": 0.19901,
    "h": 326.3
  },
  "luminance": 0.07819
}

Semantic roles & 50–950 ramp

primary
#8A128F
secondary
#3FC33A
accent
#F4343B
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110610
muted
#807A7F

Preview Lab

Preview with #8A128F

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

Preview Lab → · Contrast checker → · Palette generator →

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