#8A26B1#8A26B1

#8A26B1 is a mid, highly saturated purple. Relative luminance 0.100; OKLCH L 49.1% C 0.210 H 314.1°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8A26B1
RGBrgb(138, 38, 177)
HSLhsl(283, 65%, 42%)
HSVhsv(283, 79%, 69%)
CMYKcmyk(22%, 78.5%, 0%, 30.6%)
CIE-LABlab(37.78, 61.11, -53.45)
CIE-LCHlch(37.78, 81.18, 318.83°)
OKLaboklab(49.11% 0.1464 -0.151)
OKLCHoklch(49.11% 0.21 314.1)
XYZxyz(19.1088, 9.9645, 42.5032)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A26B1 #4DB126
analogous
#4426B1 #8A26B1 #B12693
triadic
#8A26B1 #B18A26 #26B18A
tetradic
#8A26B1 #B14426 #4DB126 #2693B1
square
#8A26B1 #B14426 #4DB126 #2693B1
split-complementary
#8A26B1 #93B126 #26B144
monochromatic
#3B104C #631B7F #8A26B1 #AB3FD6 #C171E0

Accessibility & contrast

On white

7.02
#8A26B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A26B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A26B1
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A26B1#FFFFFF#000000##FFFFFF
##8A26B11.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#195BAE
Tritanopia (blue-blind)
#86476B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a26b1;
/* rgb */ color: rgb(138, 38, 177);
/* oklch */ color: oklch(49.1% 0.210 314.1);
Tailwind
colors: {
  custom: {
    50: '#b16cc9',
    500: '#8a26b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a26b1;
$custom-light: #b16cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a26b1",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 283.165,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49107,
    "c": 0.21035,
    "h": 314.1
  },
  "luminance": 0.09964
}

Semantic roles & 50–950 ramp

primary
#8A26B1
secondary
#85C76B
accent
#E8406F
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A26B1

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

Preview Lab → · Contrast checker → · Palette generator →

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