#8A1C8E#8A1C8E

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

Color values

HEX#8A1C8E
RGBrgb(138, 28, 142)
HSLhsl(298, 67%, 33%)
HSVhsv(298, 80%, 56%)
CMYKcmyk(2.8%, 80.3%, 0%, 44.3%)
CIE-LABlab(34.37, 57.68, -37.76)
CIE-LCHlch(34.37, 68.94, 326.79°)
OKLaboklab(45.96% 0.159 -0.105)
OKLCHoklch(45.96% 0.191 326.5)
XYZxyz(15.7787, 8.1879, 26.3353)
Luminance0.0819 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1C8E #208E1C
analogous
#511C8E #8A1C8E #8E1C59
triadic
#8A1C8E #8E8A1C #1C8E8A
tetradic
#8A1C8E #8E511C #208E1C #1C598E
square
#8A1C8E #8E511C #208E1C #1C598E
split-complementary
#8A1C8E #598E1C #1C8E51
monochromatic
#270828 #58125B #8A1C8E #BC26C1 #D649DB

Accessibility & contrast

On white

7.96
#8A1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1C8E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1C8E#FFFFFF#000000##FFFFFF
##8A1C8E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#3A558B
Tritanopia (blue-blind)
#8E3155
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1c8e;
/* rgb */ color: rgb(138, 28, 142);
/* oklch */ color: oklch(46.0% 0.191 326.5);
Tailwind
colors: {
  custom: {
    50: '#b067af',
    500: '#8a1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1c8e;
$custom-light: #b067af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1c8e",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 297.895,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.45955,
    "c": 0.19053,
    "h": 326.5
  },
  "luminance": 0.08187
}

Semantic roles & 50–950 ramp

primary
#8A1C8E
secondary
#4DBD49
accent
#EA3E44
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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