#8A26B9#8A26B9

#8A26B9 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.7% C 0.217 H 311.8°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8A26B9
RGBrgb(138, 38, 185)
HSLhsl(281, 66%, 44%)
HSVhsv(281, 79%, 73%)
CMYKcmyk(25.4%, 79.5%, 0%, 27.5%)
CIE-LABlab(38.36, 62.72, -57.23)
CIE-LCHlch(38.36, 84.91, 317.62°)
OKLaboklab(49.7% 0.1448 -0.1622)
OKLCHoklch(49.7% 0.217 311.8)
XYZxyz(19.9297, 10.2928, 46.8264)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A26B9 #55B926
analogous
#4026B9 #8A26B9 #B9269E
triadic
#8A26B9 #B98A26 #26B98A
tetradic
#8A26B9 #B94026 #55B926 #269EB9
square
#8A26B9 #B94026 #55B926 #269EB9
split-complementary
#8A26B9 #9EB926 #26B940
monochromatic
#3E1153 #641C86 #8A26B9 #A944D9 #C076E3

Accessibility & contrast

On white

6.87
#8A26B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8A26B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A26B9
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A26B9#FFFFFF#000000##FFFFFF
##8A26B91.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#005CB6
Tritanopia (blue-blind)
#844B70
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a26b9;
/* rgb */ color: rgb(138, 38, 185);
/* oklch */ color: oklch(49.7% 0.217 311.8);
Tailwind
colors: {
  custom: {
    50: '#b16dcf',
    500: '#8a26b9',
    950: '#000000',
  },
}
SCSS
$custom: #8a26b9;
$custom-light: #b16dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a26b9",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 185
  },
  "hsl": {
    "h": 280.816,
    "s": 65.919,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49701,
    "c": 0.21742,
    "h": 311.8
  },
  "luminance": 0.10292
}

Semantic roles & 50–950 ramp

primary
#8A26B9
secondary
#8DCA70
accent
#E93F75
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A26B9

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

Preview Lab → · Contrast checker → · Palette generator →

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