#8A24A6#8A24A6

#8A24A6 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.2% C 0.203 H 317.7°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#8A24A6
RGBrgb(138, 36, 166)
HSLhsl(287, 64%, 40%)
HSVhsv(287, 78%, 65%)
CMYKcmyk(16.9%, 78.3%, 0%, 34.9%)
CIE-LABlab(36.78, 59.61, -48.49)
CIE-LCHlch(36.78, 76.84, 320.87°)
OKLaboklab(48.16% 0.1499 -0.1365)
OKLCHoklch(48.16% 0.203 317.7)
XYZxyz(17.9941, 9.4190, 36.9392)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A24A6 #40A624
analogous
#4924A6 #8A24A6 #A62481
triadic
#8A24A6 #A68A24 #24A68A
tetradic
#8A24A6 #A64924 #40A624 #2481A6
square
#8A24A6 #A64924 #40A624 #2481A6
split-complementary
#8A24A6 #81A624 #24A649
monochromatic
#360E41 #601974 #8A24A6 #B134D3 #C466DE

Accessibility & contrast

On white

7.28
#8A24A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#8A24A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A24A6
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A24A6#FFFFFF#000000##FFFFFF
##8A24A61.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#285AA3
Tritanopia (blue-blind)
#894165
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a24a6;
/* rgb */ color: rgb(138, 36, 166);
/* oklch */ color: oklch(48.2% 0.203 317.7);
Tailwind
colors: {
  custom: {
    50: '#b06bc1',
    500: '#8a24a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a24a6;
$custom-light: #b06bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a24a6",
  "rgb": {
    "r": 138,
    "g": 36,
    "b": 166
  },
  "hsl": {
    "h": 287.077,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48158,
    "c": 0.20271,
    "h": 317.7
  },
  "luminance": 0.09418
}

Semantic roles & 50–950 ramp

primary
#8A24A6
secondary
#77C462
accent
#E74064
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A24A6

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

Preview Lab → · Contrast checker → · Palette generator →

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