#8B26A4#8B26A4

#8B26A4 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.199 H 318.6°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#8B26A4
RGBrgb(139, 38, 164)
HSLhsl(288, 62%, 40%)
HSVhsv(288, 77%, 64%)
CMYKcmyk(15.2%, 76.8%, 0%, 35.7%)
CIE-LABlab(37.03, 58.75, -46.87)
CIE-LCHlch(37.03, 75.16, 321.42°)
OKLaboklab(48.33% 0.1497 -0.1317)
OKLCHoklch(48.33% 0.199 318.6)
XYZxyz(18.0405, 9.5564, 36.0091)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B26A4 #3FA426
analogous
#4C26A4 #8B26A4 #A4267E
triadic
#8B26A4 #A48B26 #26A48B
tetradic
#8B26A4 #A44C26 #3FA426 #267EA4
square
#8B26A4 #A44C26 #3FA426 #267EA4
split-complementary
#8B26A4 #7EA426 #26A44C
monochromatic
#370F41 #611A72 #8B26A4 #B237D1 #C568DC

Accessibility & contrast

On white

7.21
#8B26A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8B26A4
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B26A4#FFFFFF#000000##FFFFFF
##8B26A41.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#2E5AA1
Tritanopia (blue-blind)
#8B4164
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8b26a4;
/* rgb */ color: rgb(139, 38, 164);
/* oklch */ color: oklch(48.3% 0.199 318.6);
Tailwind
colors: {
  custom: {
    50: '#b16cc0',
    500: '#8b26a4',
    950: '#000000',
  },
}
SCSS
$custom: #8b26a4;
$custom-light: #b16cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b26a4",
  "rgb": {
    "r": 139,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 288.095,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48327,
    "c": 0.19936,
    "h": 318.6
  },
  "luminance": 0.09556
}

Semantic roles & 50–950 ramp

primary
#8B26A4
secondary
#76C264
accent
#E54263
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B26A4

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

Preview Lab → · Contrast checker → · Palette generator →

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