#8A26B4#8A26B4

#8A26B4 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.3% C 0.213 H 313.2°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#8A26B4
RGBrgb(138, 38, 180)
HSLhsl(282, 65%, 43%)
HSVhsv(282, 79%, 71%)
CMYKcmyk(23.3%, 78.9%, 0%, 29.4%)
CIE-LABlab(38.00, 61.71, -54.87)
CIE-LCHlch(38.00, 82.58, 318.35°)
OKLaboklab(49.33% 0.1458 -0.1552)
OKLCHoklch(49.33% 0.213 313.2)
XYZxyz(19.4111, 10.0854, 44.0953)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A26B4 #50B426
analogous
#4326B4 #8A26B4 #B42697
triadic
#8A26B4 #B48A26 #26B48A
tetradic
#8A26B4 #B44326 #50B426 #2697B4
square
#8A26B4 #B44326 #50B426 #2697B4
split-complementary
#8A26B4 #97B426 #26B443
monochromatic
#3D114F #631B81 #8A26B4 #AA40D7 #C173E1

Accessibility & contrast

On white

6.96
#8A26B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8A26B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A26B4
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A26B4#FFFFFF#000000##FFFFFF
##8A26B41.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#125CB1
Tritanopia (blue-blind)
#85486D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a26b4;
/* rgb */ color: rgb(138, 38, 180);
/* oklch */ color: oklch(49.3% 0.213 313.2);
Tailwind
colors: {
  custom: {
    50: '#b16dcb',
    500: '#8a26b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a26b4;
$custom-light: #b16dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a26b4",
  "rgb": {
    "r": 138,
    "g": 38,
    "b": 180
  },
  "hsl": {
    "h": 282.254,
    "s": 65.138,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49327,
    "c": 0.21299,
    "h": 313.2
  },
  "luminance": 0.10085
}

Semantic roles & 50–950 ramp

primary
#8A26B4
secondary
#88C96D
accent
#E84072
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A26B4

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

Preview Lab → · Contrast checker → · Palette generator →

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