#8A1C8F#8A1C8F

#8A1C8F is a mid, vivid purple. Relative luminance 0.082; OKLCH L 46.0% C 0.191 H 326.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#8A1C8F
RGBrgb(138, 28, 143)
HSLhsl(297, 67%, 34%)
HSVhsv(297, 80%, 56%)
CMYKcmyk(3.5%, 80.4%, 0%, 43.9%)
CIE-LABlab(34.43, 57.85, -38.28)
CIE-LCHlch(34.43, 69.37, 326.51°)
OKLaboklab(46.02% 0.1589 -0.1066)
OKLCHoklch(46.02% 0.191 326.2)
XYZxyz(15.8541, 8.2181, 26.7325)
Luminance0.0822 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C8F #218F1C
analogous
#501C8F #8A1C8F #8F1C5A
triadic
#8A1C8F #8F8A1C #1C8F8A
tetradic
#8A1C8F #8F501C #218F1C #1C5A8F
square
#8A1C8F #8F501C #218F1C #1C5A8F
split-complementary
#8A1C8F #5A8F1C #1C8F50
monochromatic
#270829 #59125C #8A1C8F #BB26C2 #D54ADC

Accessibility & contrast

On white

7.94
#8A1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A1C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1C8F
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C8F#FFFFFF#000000##FFFFFF
##8A1C8F1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#39568C
Tritanopia (blue-blind)
#8E3256
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1c8f;
/* rgb */ color: rgb(138, 28, 143);
/* oklch */ color: oklch(46.0% 0.191 326.2);
Tailwind
colors: {
  custom: {
    50: '#b067b0',
    500: '#8a1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c8f;
$custom-light: #b067b0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c8f",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 297.391,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.46019,
    "c": 0.19131,
    "h": 326.2
  },
  "luminance": 0.08217
}

Semantic roles & 50–950 ramp

primary
#8A1C8F
secondary
#4EBE49
accent
#EA3E45
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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