#8A26BA#8A26BA

#8A26BA is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.8% C 0.218 H 311.5°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#8A26BA
RGBrgb(138, 38, 186)
HSLhsl(281, 66%, 44%)
HSVhsv(281, 80%, 73%)
CMYKcmyk(25.8%, 79.6%, 0%, 27.1%)
CIE-LABlab(38.44, 62.93, -57.70)
CIE-LCHlch(38.44, 85.38, 317.48°)
OKLaboklab(49.78% 0.1446 -0.1636)
OKLCHoklch(49.78% 0.218 311.5)
XYZxyz(20.0356, 10.3352, 47.3843)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A26BA #56BA26
analogous
#4026BA #8A26BA #BA26A0
triadic
#8A26BA #BA8A26 #26BA8A
tetradic
#8A26BA #BA4026 #56BA26 #26A0BA
square
#8A26BA #BA4026 #56BA26 #26A0BA
split-complementary
#8A26BA #A0BA26 #26BA40
monochromatic
#3F1154 #641C87 #8A26BA #A944D9 #C077E3

Accessibility & contrast

On white

6.85
#8A26BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8A26BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A26BA
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A26BA#FFFFFF#000000##FFFFFF
##8A26BA1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#844B71
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a26ba;
/* rgb */ color: rgb(138, 38, 186);
/* oklch */ color: oklch(49.8% 0.218 311.5);
Tailwind
colors: {
  custom: {
    50: '#b16dd0',
    500: '#8a26ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a26ba;
$custom-light: #b16dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a26ba",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 186
  },
  "hsl": {
    "h": 280.541,
    "s": 66.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49776,
    "c": 0.2183,
    "h": 311.5
  },
  "luminance": 0.10335
}

Semantic roles & 50–950 ramp

primary
#8A26BA
secondary
#8ECB71
accent
#E93F76
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A26BA

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

Preview Lab → · Contrast checker → · Palette generator →

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