#8A26A1#8A26A1

#8A26A1 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.196 H 319.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#8A26A1
RGBrgb(138, 38, 161)
HSLhsl(289, 62%, 39%)
HSVhsv(289, 76%, 63%)
CMYKcmyk(14.3%, 76.4%, 0%, 36.9%)
CIE-LABlab(36.68, 57.98, -45.65)
CIE-LCHlch(36.68, 73.79, 321.78°)
OKLaboklab(47.98% 0.1488 -0.1282)
OKLCHoklch(47.98% 0.196 319.3)
XYZxyz(17.6065, 9.3636, 34.5912)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A26A1 #3DA126
analogous
#4C26A1 #8A26A1 #A1267B
triadic
#8A26A1 #A18A26 #26A18A
tetradic
#8A26A1 #A14C26 #3DA126 #267BA1
square
#8A26A1 #A14C26 #3DA126 #267BA1
split-complementary
#8A26A1 #7BA126 #26A14C
monochromatic
#350F3E #601A6F #8A26A1 #B235CF #C566DB

Accessibility & contrast

On white

7.31
#8A26A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A26A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A26A1
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A26A1#FFFFFF#000000##FFFFFF
##8A26A11.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#2F5A9E
Tritanopia (blue-blind)
#8A4062
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a26a1;
/* rgb */ color: rgb(138, 38, 161);
/* oklch */ color: oklch(48.0% 0.196 319.3);
Tailwind
colors: {
  custom: {
    50: '#b06cbd',
    500: '#8a26a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a26a1;
$custom-light: #b06cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a26a1",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 161
  },
  "hsl": {
    "h": 288.78,
    "s": 61.809,
    "l": 39.02
  },
  "oklch": {
    "l": 0.47978,
    "c": 0.19637,
    "h": 319.3
  },
  "luminance": 0.09363
}

Semantic roles & 50–950 ramp

primary
#8A26A1
secondary
#74C162
accent
#E54361
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A26A1

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

Preview Lab → · Contrast checker → · Palette generator →

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