#8A28B9#8A28B9

#8A28B9 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.9% C 0.216 H 311.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8A28B9
RGBrgb(138, 40, 185)
HSLhsl(281, 64%, 44%)
HSVhsv(281, 78%, 73%)
CMYKcmyk(25.4%, 78.4%, 0%, 27.5%)
CIE-LABlab(38.59, 62.06, -56.86)
CIE-LCHlch(38.59, 84.17, 317.50°)
OKLaboklab(49.86% 0.1432 -0.1611)
OKLCHoklch(49.86% 0.216 311.6)
XYZxyz(19.9953, 10.4242, 46.8483)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28B9 #57B928
analogous
#4228B9 #8A28B9 #B928A0
triadic
#8A28B9 #B98A28 #28B98A
tetradic
#8A28B9 #B94228 #57B928 #28A0B9
square
#8A28B9 #B94228 #57B928 #28A0B9
split-complementary
#8A28B9 #A0B928 #28B942
monochromatic
#3F1254 #641D87 #8A28B9 #A847D7 #C079E2

Accessibility & contrast

On white

6.81
#8A28B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#8A28B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A28B9
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28B9#FFFFFF#000000##FFFFFF
##8A28B91.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#035DB6
Tritanopia (blue-blind)
#844C70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a28b9;
/* rgb */ color: rgb(138, 40, 185);
/* oklch */ color: oklch(49.9% 0.216 311.6);
Tailwind
colors: {
  custom: {
    50: '#b16ecf',
    500: '#8a28b9',
    950: '#000000',
  },
}
SCSS
$custom: #8a28b9;
$custom-light: #b16ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28b9",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 280.552,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49862,
    "c": 0.21554,
    "h": 311.6
  },
  "luminance": 0.10424
}

Semantic roles & 50–950 ramp

primary
#8A28B9
secondary
#8FCA73
accent
#E74077
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A28B9

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

Preview Lab → · Contrast checker → · Palette generator →

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