#8A108D#8A108D

#8A108D is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.2% C 0.199 H 327.1°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#8A108D
RGBrgb(138, 16, 141)
HSLhsl(299, 80%, 31%)
HSVhsv(299, 89%, 55%)
CMYKcmyk(2.1%, 88.7%, 0%, 44.7%)
CIE-LABlab(33.35, 60.32, -38.79)
CIE-LCHlch(33.35, 71.71, 327.26°)
OKLaboklab(45.21% 0.1669 -0.108)
OKLCHoklch(45.21% 0.199 327.1)
XYZxyz(15.4740, 7.6981, 25.8650)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A108D #138D10
analogous
#4B108D #8A108D #8D1051
triadic
#8A108D #8D8A10 #108D8A
tetradic
#8A108D #8D4B10 #138D10 #10518D
square
#8A108D #8D4B10 #138D10 #10518D
split-complementary
#8A108D #518D10 #108D4B
monochromatic
#1E041F #540A56 #8A108D #C016C4 #E330E7

Accessibility & contrast

On white

8.27
#8A108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#8A108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A108D
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A108D#FFFFFF#000000##FFFFFF
##8A108D1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#36538A
Tritanopia (blue-blind)
#8E2B53
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #8a108d;
/* rgb */ color: rgb(138, 16, 141);
/* oklch */ color: oklch(45.2% 0.199 327.1);
Tailwind
colors: {
  custom: {
    50: '#b063af',
    500: '#8a108d',
    950: '#000000',
  },
}
SCSS
$custom: #8a108d;
$custom-light: #b063af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a108d",
  "rgb": {
    "r": 138,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 298.56,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.4521,
    "c": 0.19876,
    "h": 327.1
  },
  "luminance": 0.07697
}

Semantic roles & 50–950 ramp

primary
#8A108D
secondary
#3AC237
accent
#F63236
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110610
muted
#807A7F

Preview Lab

Preview with #8A108D

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

Preview Lab → · Contrast checker → · Palette generator →

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