#8A18A1#8A18A1

#8A18A1 is a mid, highly saturated purple. Relative luminance 0.086; OKLCH L 47.0% C 0.209 H 319.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#8A18A1
RGBrgb(138, 24, 161)
HSLhsl(290, 74%, 36%)
HSVhsv(290, 85%, 63%)
CMYKcmyk(14.3%, 85.1%, 0%, 36.9%)
CIE-LABlab(35.26, 62.07, -47.92)
CIE-LCHlch(35.26, 78.42, 322.33°)
OKLaboklab(46.98% 0.1595 -0.1347)
OKLCHoklch(46.98% 0.209 319.8)
XYZxyz(17.2401, 8.6307, 34.4691)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A18A1 #2FA118
analogous
#4618A1 #8A18A1 #A11874
triadic
#8A18A1 #A18A18 #18A18A
tetradic
#8A18A1 #A14618 #2FA118 #1874A1
square
#8A18A1 #A14618 #2FA118 #1874A1
split-complementary
#8A18A1 #74A118 #18A146
monochromatic
#2F0836 #5C106C #8A18A1 #B820D6 #CC4FE5

Accessibility & contrast

On white

7.70
#8A18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8A18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A18A1
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A18A1#FFFFFF#000000##FFFFFF
##8A18A11.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA4
Deuteranopia (green-blind)
#27579E
Tritanopia (blue-blind)
#8A3960
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a18a1;
/* rgb */ color: rgb(138, 24, 161);
/* oklch */ color: oklch(47.0% 0.209 319.8);
Tailwind
colors: {
  custom: {
    50: '#b167bd',
    500: '#8a18a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a18a1;
$custom-light: #b167bd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a18a1",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 289.927,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46983,
    "c": 0.20882,
    "h": 319.8
  },
  "luminance": 0.0863
}

Semantic roles & 50–950 ramp

primary
#8A18A1
secondary
#62C74E
accent
#F13756
background
#FBF6FB
surface
#F6EBF7
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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