#8A26A6#8A26A6

#8A26A6 is a mid, highly saturated purple. Relative luminance 0.095; OKLCH L 48.3% C 0.201 H 317.6°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#8A26A6
RGBrgb(138, 38, 166)
HSLhsl(287, 63%, 40%)
HSVhsv(287, 77%, 65%)
CMYKcmyk(16.9%, 77.1%, 0%, 34.9%)
CIE-LABlab(37.01, 58.94, -48.12)
CIE-LCHlch(37.01, 76.09, 320.77°)
OKLaboklab(48.32% 0.1482 -0.1354)
OKLCHoklch(48.32% 0.201 317.6)
XYZxyz(18.0563, 9.5435, 36.9600)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A26A6 #42A626
analogous
#4A26A6 #8A26A6 #A62682
triadic
#8A26A6 #A68A26 #26A68A
tetradic
#8A26A6 #A64A26 #42A626 #2682A6
square
#8A26A6 #A64A26 #42A626 #2682A6
split-complementary
#8A26A6 #82A626 #26A64A
monochromatic
#370F42 #611B74 #8A26A6 #B038D1 #C46ADD

Accessibility & contrast

On white

7.22
#8A26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A26A6
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A26A6#FFFFFF#000000##FFFFFF
##8A26A61.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#2A5AA3
Tritanopia (blue-blind)
#894265
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a26a6;
/* rgb */ color: rgb(138, 38, 166);
/* oklch */ color: oklch(48.3% 0.201 317.6);
Tailwind
colors: {
  custom: {
    50: '#b06cc1',
    500: '#8a26a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a26a6;
$custom-light: #b06cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a26a6",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 286.875,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.48322,
    "c": 0.20071,
    "h": 317.6
  },
  "luminance": 0.09543
}

Semantic roles & 50–950 ramp

primary
#8A26A6
secondary
#79C365
accent
#E64266
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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