#8A1D8E#8A1D8E

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

Color values

HEX#8A1D8E
RGBrgb(138, 29, 142)
HSLhsl(298, 66%, 34%)
HSVhsv(298, 80%, 56%)
CMYKcmyk(2.8%, 79.6%, 0%, 44.3%)
CIE-LABlab(34.47, 57.40, -37.61)
CIE-LCHlch(34.47, 68.62, 326.77°)
OKLaboklab(46.03% 0.1582 -0.1046)
OKLCHoklch(46.03% 0.19 326.5)
XYZxyz(15.8028, 8.2361, 26.3433)
Luminance0.0824 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D8E #218E1D
analogous
#511D8E #8A1D8E #8E1D59
triadic
#8A1D8E #8E8A1D #1D8E8A
tetradic
#8A1D8E #8E511D #218E1D #1D598E
square
#8A1D8E #8E511D #218E1D #1D598E
split-complementary
#8A1D8E #598E1D #1D8E51
monochromatic
#270828 #59135B #8A1D8E #BB27C1 #D54BDA

Accessibility & contrast

On white

7.93
#8A1D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8A1D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D8E
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D8E#FFFFFF#000000##FFFFFF
##8A1D8E1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a1d8e;
/* rgb */ color: rgb(138, 29, 142);
/* oklch */ color: oklch(46.0% 0.190 326.5);
Tailwind
colors: {
  custom: {
    50: '#b067af',
    500: '#8a1d8e',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d8e;
$custom-light: #b067af;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d8e",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 297.876,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.46025,
    "c": 0.18961,
    "h": 326.5
  },
  "luminance": 0.08235
}

Semantic roles & 50–950 ramp

primary
#8A1D8E
secondary
#4EBD4A
accent
#E93F45
background
#FBF6FA
surface
#F6EBF5
border
#D0C6CF
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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