#8A1DA8#8A1DA8

#8A1DA8 is a mid, highly saturated purple. Relative luminance 0.091; OKLCH L 47.8% C 0.211 H 317.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#8A1DA8
RGBrgb(138, 29, 168)
HSLhsl(287, 71%, 39%)
HSVhsv(287, 83%, 66%)
CMYKcmyk(17.9%, 82.7%, 0%, 34.1%)
CIE-LABlab(36.20, 62.09, -50.63)
CIE-LCHlch(36.20, 80.11, 320.80°)
OKLaboklab(47.79% 0.1549 -0.1427)
OKLCHoklch(47.79% 0.211 317.3)
XYZxyz(17.9874, 9.1100, 37.8491)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1DA8 #3BA81D
analogous
#441DA8 #8A1DA8 #A81D80
triadic
#8A1DA8 #A88A1D #1DA88A
tetradic
#8A1DA8 #A8441D #3BA81D #1D80A8
square
#8A1DA8 #A8441D #3BA81D #1D80A8
split-complementary
#8A1DA8 #80A81D #1DA844
monochromatic
#340B40 #5F1474 #8A1DA8 #B428DA #C65CE3

Accessibility & contrast

On white

7.44
#8A1DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8A1DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1DA8
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1DA8#FFFFFF#000000##FFFFFF
##8A1DA81.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#2058A5
Tritanopia (blue-blind)
#883F64
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a1da8;
/* rgb */ color: rgb(138, 29, 168);
/* oklch */ color: oklch(47.8% 0.211 317.3);
Tailwind
colors: {
  custom: {
    50: '#b169c3',
    500: '#8a1da8',
    950: '#000000',
  },
}
SCSS
$custom: #8a1da8;
$custom-light: #b169c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1da8",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 168
  },
  "hsl": {
    "h": 287.05,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.47792,
    "c": 0.21065,
    "h": 317.3
  },
  "luminance": 0.09109
}

Semantic roles & 50–950 ramp

primary
#8A1DA8
secondary
#71C75A
accent
#ED3A61
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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