#8A26A2#8A26A2

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

Color values

HEX#8A26A2
RGBrgb(138, 38, 162)
HSLhsl(288, 62%, 39%)
HSVhsv(288, 77%, 64%)
CMYKcmyk(14.8%, 76.5%, 0%, 36.5%)
CIE-LABlab(36.74, 58.17, -46.15)
CIE-LCHlch(36.74, 74.25, 321.57°)
OKLaboklab(48.05% 0.1487 -0.1296)
OKLCHoklch(48.05% 0.197 318.9)
XYZxyz(17.6951, 9.3990, 35.0575)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A26A2 #3EA226
analogous
#4C26A2 #8A26A2 #A2267C
triadic
#8A26A2 #A28A26 #26A28A
tetradic
#8A26A2 #A24C26 #3EA226 #267CA2
square
#8A26A2 #A24C26 #3EA226 #267CA2
split-complementary
#8A26A2 #7CA226 #26A24C
monochromatic
#360F3F #601A70 #8A26A2 #B235D0 #C567DB

Accessibility & contrast

On white

7.29
#8A26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A26A2
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A26A2#FFFFFF#000000##FFFFFF
##8A26A21.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#2E5A9F
Tritanopia (blue-blind)
#8A4063
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a26a2;
/* rgb */ color: rgb(138, 38, 162);
/* oklch */ color: oklch(48.0% 0.197 318.9);
Tailwind
colors: {
  custom: {
    50: '#b06cbe',
    500: '#8a26a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a26a2;
$custom-light: #b06cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a26a2",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 288.387,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48046,
    "c": 0.19723,
    "h": 318.9
  },
  "luminance": 0.09398
}

Semantic roles & 50–950 ramp

primary
#8A26A2
secondary
#75C163
accent
#E54362
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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