#8A26AB#8A26AB

#8A26AB is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.7% C 0.205 H 316.0°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#8A26AB
RGBrgb(138, 38, 171)
HSLhsl(285, 64%, 41%)
HSVhsv(285, 78%, 67%)
CMYKcmyk(19.3%, 77.8%, 0%, 32.9%)
CIE-LABlab(37.35, 59.92, -50.56)
CIE-LCHlch(37.35, 78.40, 319.84°)
OKLaboklab(48.67% 0.1474 -0.1426)
OKLCHoklch(48.67% 0.205 316)
XYZxyz(18.5239, 9.7305, 39.4226)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A26AB #47AB26
analogous
#4726AB #8A26AB #AB2689
triadic
#8A26AB #AB8A26 #26AB8A
tetradic
#8A26AB #AB4726 #47AB26 #2689AB
square
#8A26AB #AB4726 #47AB26 #2689AB
split-complementary
#8A26AB #89AB26 #26AB47
monochromatic
#391047 #621B79 #8A26AB #AE3BD3 #C26DDF

Accessibility & contrast

On white

7.13
#8A26AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8A26AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A26AB
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A26AB#FFFFFF#000000##FFFFFF
##8A26AB1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AF
Deuteranopia (green-blind)
#235BA8
Tritanopia (blue-blind)
#884468
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a26ab;
/* rgb */ color: rgb(138, 38, 171);
/* oklch */ color: oklch(48.7% 0.205 316.0);
Tailwind
colors: {
  custom: {
    50: '#b06cc5',
    500: '#8a26ab',
    950: '#000000',
  },
}
SCSS
$custom: #8a26ab;
$custom-light: #b06cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a26ab",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 285.113,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48674,
    "c": 0.20508,
    "h": 316
  },
  "luminance": 0.0973
}

Semantic roles & 50–950 ramp

primary
#8A26AB
secondary
#7FC568
accent
#E7416A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A26AB

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

Preview Lab → · Contrast checker → · Palette generator →

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