#8A16B4#8A16B4

#8A16B4 is a mid, highly saturated purple. Relative luminance 0.093; OKLCH L 48.3% C 0.225 H 314.0°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#8A16B4
RGBrgb(138, 22, 180)
HSLhsl(284, 78%, 40%)
HSVhsv(284, 88%, 71%)
CMYKcmyk(23.3%, 87.8%, 0%, 29.4%)
CIE-LABlab(36.50, 66.06, -57.29)
CIE-LCHlch(36.50, 87.45, 319.07°)
OKLaboklab(48.29% 0.1565 -0.1622)
OKLCHoklch(48.29% 0.225 314)
XYZxyz(19.0049, 9.2731, 43.9599)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A16B4 #40B416
analogous
#3B16B4 #8A16B4 #B4168F
triadic
#8A16B4 #B48A16 #16B48A
tetradic
#8A16B4 #B43B16 #40B416 #168FB4
square
#8A16B4 #B43B16 #40B416 #168FB4
split-complementary
#8A16B4 #8FB416 #16B43B
monochromatic
#360947 #600F7D #8A16B4 #B123E4 #C45AEB

Accessibility & contrast

On white

7.36
#8A16B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8A16B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A16B4
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A16B4#FFFFFF#000000##FFFFFF
##8A16B41.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#86426A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a16b4;
/* rgb */ color: rgb(138, 22, 180);
/* oklch */ color: oklch(48.3% 0.225 314.0);
Tailwind
colors: {
  custom: {
    50: '#b167cb',
    500: '#8a16b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a16b4;
$custom-light: #b167cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a16b4",
  "rgb": {
    "r": 138,
    "g": 22,
    "b": 180
  },
  "hsl": {
    "h": 284.051,
    "s": 78.218,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48287,
    "c": 0.22541,
    "h": 314
  },
  "luminance": 0.09272
}

Semantic roles & 50–950 ramp

primary
#8A16B4
secondary
#77CE58
accent
#F53367
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A16B4

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

Preview Lab → · Contrast checker → · Palette generator →

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