#8A24A7#8A24A7

#8A24A7 is a mid, highly saturated purple. Relative luminance 0.095; OKLCH L 48.2% C 0.204 H 317.3°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#8A24A7
RGBrgb(138, 36, 167)
HSLhsl(287, 65%, 40%)
HSVhsv(287, 78%, 65%)
CMYKcmyk(17.4%, 78.4%, 0%, 34.5%)
CIE-LABlab(36.85, 59.80, -48.98)
CIE-LCHlch(36.85, 77.30, 320.68°)
OKLaboklab(48.23% 0.1497 -0.1379)
OKLCHoklch(48.23% 0.204 317.3)
XYZxyz(18.0861, 9.4558, 37.4242)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A24A7 #41A724
analogous
#4924A7 #8A24A7 #A72482
triadic
#8A24A7 #A78A24 #24A78A
tetradic
#8A24A7 #A74924 #41A724 #2482A7
square
#8A24A7 #A74924 #41A724 #2482A7
split-complementary
#8A24A7 #82A724 #24A749
monochromatic
#370E42 #601975 #8A24A7 #B035D3 #C467DE

Accessibility & contrast

On white

7.26
#8A24A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A24A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A24A7
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A24A7#FFFFFF#000000##FFFFFF
##8A24A71.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#275AA4
Tritanopia (blue-blind)
#894165
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a24a7;
/* rgb */ color: rgb(138, 36, 167);
/* oklch */ color: oklch(48.2% 0.204 317.3);
Tailwind
colors: {
  custom: {
    50: '#b06bc2',
    500: '#8a24a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a24a7;
$custom-light: #b06bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a24a7",
  "rgb": {
    "r": 138,
    "g": 36,
    "b": 167
  },
  "hsl": {
    "h": 286.718,
    "s": 64.532,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48228,
    "c": 0.20356,
    "h": 317.3
  },
  "luminance": 0.09455
}

Semantic roles & 50–950 ramp

primary
#8A24A7
secondary
#78C463
accent
#E84065
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110712
muted
#807A81

Preview Lab

Preview with #8A24A7

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

Preview Lab → · Contrast checker → · Palette generator →

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