#8A28A7#8A28A7

#8A28A7 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.6% C 0.200 H 317.1°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#8A28A7
RGBrgb(138, 40, 167)
HSLhsl(286, 61%, 41%)
HSVhsv(286, 76%, 65%)
CMYKcmyk(17.4%, 76%, 0%, 34.5%)
CIE-LABlab(37.32, 58.44, -48.22)
CIE-LCHlch(37.32, 75.76, 320.47°)
OKLaboklab(48.56% 0.1462 -0.1357)
OKLCHoklch(48.56% 0.2 317.1)
XYZxyz(18.2140, 9.7117, 37.4668)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28A7 #45A728
analogous
#4A28A7 #8A28A7 #A72884
triadic
#8A28A7 #A78A28 #28A78A
tetradic
#8A28A7 #A74A28 #45A728 #2884A7
square
#8A28A7 #A74A28 #45A728 #2884A7
split-complementary
#8A28A7 #84A728 #28A74A
monochromatic
#381044 #611C76 #8A28A7 #AE3CD0 #C36DDC

Accessibility & contrast

On white

7.14
#8A28A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8A28A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A28A7
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28A7#FFFFFF#000000##FFFFFF
##8A28A71.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AA
Deuteranopia (green-blind)
#2A5BA4
Tritanopia (blue-blind)
#894366
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a28a7;
/* rgb */ color: rgb(138, 40, 167);
/* oklch */ color: oklch(48.6% 0.200 317.1);
Tailwind
colors: {
  custom: {
    50: '#b06dc2',
    500: '#8a28a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a28a7;
$custom-light: #b06dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28a7",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 286.299,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48562,
    "c": 0.19951,
    "h": 317.1
  },
  "luminance": 0.09711
}

Semantic roles & 50–950 ramp

primary
#8A28A7
secondary
#7DC368
accent
#E44368
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A28A7

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

Preview Lab → · Contrast checker → · Palette generator →

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