#8A28B7#8A28B7

#8A28B7 is a mid, highly saturated purple. Relative luminance 0.103; OKLCH L 49.7% C 0.214 H 312.2°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8A28B7
RGBrgb(138, 40, 183)
HSLhsl(281, 64%, 44%)
HSVhsv(281, 78%, 72%)
CMYKcmyk(24.6%, 78.1%, 0%, 28.2%)
CIE-LABlab(38.45, 61.65, -55.92)
CIE-LCHlch(38.45, 83.23, 317.79°)
OKLaboklab(49.71% 0.1436 -0.1583)
OKLCHoklch(49.71% 0.214 312.2)
XYZxyz(19.7857, 10.3403, 45.7442)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28B7 #55B728
analogous
#4228B7 #8A28B7 #B7289C
triadic
#8A28B7 #B78A28 #28B78A
tetradic
#8A28B7 #B74228 #55B728 #289CB7
square
#8A28B7 #B74228 #55B728 #289CB7
split-complementary
#8A28B7 #9CB728 #28B742
monochromatic
#3E1253 #641D85 #8A28B7 #A946D6 #C078E1

Accessibility & contrast

On white

6.84
#8A28B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8A28B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A28B7
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28B7#FFFFFF#000000##FFFFFF
##8A28B71.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0C5CB4
Tritanopia (blue-blind)
#854B6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a28b7;
/* rgb */ color: rgb(138, 40, 183);
/* oklch */ color: oklch(49.7% 0.214 312.2);
Tailwind
colors: {
  custom: {
    50: '#b16ecd',
    500: '#8a28b7',
    950: '#000000',
  },
}
SCSS
$custom: #8a28b7;
$custom-light: #b16ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28b7",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 281.119,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49713,
    "c": 0.21374,
    "h": 312.2
  },
  "luminance": 0.1034
}

Semantic roles & 50–950 ramp

primary
#8A28B7
secondary
#8DC972
accent
#E74175
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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