#8A26C6#8A26C6

#8A26C6 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.7% C 0.229 H 308.2°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8A26C6
RGBrgb(138, 38, 198)
HSLhsl(278, 68%, 46%)
HSVhsv(278, 81%, 78%)
CMYKcmyk(30.3%, 80.8%, 0%, 22.4%)
CIE-LABlab(39.36, 65.41, -63.25)
CIE-LCHlch(39.36, 90.99, 315.96°)
OKLaboklab(50.71% 0.1417 -0.1798)
OKLCHoklch(50.71% 0.229 308.2)
XYZxyz(21.3652, 10.8671, 54.3872)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A26C6 #62C626
analogous
#3A26C6 #8A26C6 #C626B2
triadic
#8A26C6 #C68A26 #26C68A
tetradic
#8A26C6 #C63A26 #62C626 #26B2C6
square
#8A26C6 #C63A26 #62C626 #26B2C6
split-complementary
#8A26C6 #B2C626 #26C63A
monochromatic
#42125F #661C93 #8A26C6 #A74CDD #C080E7

Accessibility & contrast

On white

6.62
#8A26C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8A26C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A26C6
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A26C6#FFFFFF#000000##FFFFFF
##8A26C61.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CA
Deuteranopia (green-blind)
#005EC3
Tritanopia (blue-blind)
#805178
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a26c6;
/* rgb */ color: rgb(138, 38, 198);
/* oklch */ color: oklch(50.7% 0.229 308.2);
Tailwind
colors: {
  custom: {
    50: '#b26ed8',
    500: '#8a26c6',
    950: '#000000',
  },
}
SCSS
$custom: #8a26c6;
$custom-light: #b26ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a26c6",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 198
  },
  "hsl": {
    "h": 277.5,
    "s": 67.797,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50705,
    "c": 0.22898,
    "h": 308.2
  },
  "luminance": 0.10867
}

Semantic roles & 50–950 ramp

primary
#8A26C6
secondary
#99CF79
accent
#EB3D7E
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8A26C6

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

Preview Lab → · Contrast checker → · Palette generator →

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