#8A1AB4#8A1AB4

#8A1AB4 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.5% C 0.223 H 313.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8A1AB4
RGBrgb(138, 26, 180)
HSLhsl(284, 75%, 40%)
HSVhsv(284, 86%, 71%)
CMYKcmyk(23.3%, 85.6%, 0%, 29.4%)
CIE-LABlab(36.81, 65.15, -56.79)
CIE-LCHlch(36.81, 86.43, 318.92°)
OKLaboklab(48.5% 0.1543 -0.1608)
OKLCHoklch(48.5% 0.223 313.8)
XYZxyz(19.0874, 9.4380, 43.9874)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1AB4 #44B41A
analogous
#3D1AB4 #8A1AB4 #B41A91
triadic
#8A1AB4 #B48A1A #1AB48A
tetradic
#8A1AB4 #B43D1A #44B41A #1A91B4
square
#8A1AB4 #B43D1A #44B41A #1A91B4
split-complementary
#8A1AB4 #91B41A #1AB43D
monochromatic
#380B49 #61127F #8A1AB4 #AF2BE0 #C360E8

Accessibility & contrast

On white

7.27
#8A1AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A1AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1AB4
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1AB4#FFFFFF#000000##FFFFFF
##8A1AB41.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#86446B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a1ab4;
/* rgb */ color: rgb(138, 26, 180);
/* oklch */ color: oklch(48.5% 0.223 313.8);
Tailwind
colors: {
  custom: {
    50: '#b168cb',
    500: '#8a1ab4',
    950: '#000000',
  },
}
SCSS
$custom: #8a1ab4;
$custom-light: #b168cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1ab4",
  "rgb": {
    "r": 138,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 283.636,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.48502,
    "c": 0.22282,
    "h": 313.8
  },
  "luminance": 0.09437
}

Semantic roles & 50–950 ramp

primary
#8A1AB4
secondary
#7CCC5D
accent
#F13669
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A1AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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