#8A28B0#8A28B0

#8A28B0 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.2% C 0.207 H 314.3°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#8A28B0
RGBrgb(138, 40, 176)
HSLhsl(283, 63%, 42%)
HSVhsv(283, 77%, 69%)
CMYKcmyk(21.6%, 77.3%, 0%, 31%)
CIE-LABlab(37.94, 60.23, -52.59)
CIE-LCHlch(37.94, 79.95, 318.87°)
OKLaboklab(49.2% 0.1449 -0.1485)
OKLCHoklch(49.2% 0.207 314.3)
XYZxyz(19.0752, 10.0561, 42.0021)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28B0 #4EB028
analogous
#4628B0 #8A28B0 #B02892
triadic
#8A28B0 #B08A28 #28B08A
tetradic
#8A28B0 #B04628 #4EB028 #2892B0
square
#8A28B0 #B04628 #4EB028 #2892B0
split-complementary
#8A28B0 #92B028 #28B046
monochromatic
#3C114C #631D7E #8A28B0 #AB41D4 #C173DF

Accessibility & contrast

On white

6.97
#8A28B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8A28B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A28B0
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28B0#FFFFFF#000000##FFFFFF
##8A28B01.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#1E5CAD
Tritanopia (blue-blind)
#86486B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a28b0;
/* rgb */ color: rgb(138, 40, 176);
/* oklch */ color: oklch(49.2% 0.207 314.3);
Tailwind
colors: {
  custom: {
    50: '#b16dc8',
    500: '#8a28b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a28b0;
$custom-light: #b16dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28b0",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 283.235,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.492,
    "c": 0.20749,
    "h": 314.3
  },
  "luminance": 0.10055
}

Semantic roles & 50–950 ramp

primary
#8A28B0
secondary
#86C66D
accent
#E64270
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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