#8A28A3#8A28A3

#8A28A3 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.196 H 318.5°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#8A28A3
RGBrgb(138, 40, 163)
HSLhsl(288, 61%, 40%)
HSVhsv(288, 75%, 64%)
CMYKcmyk(15.3%, 75.5%, 0%, 36.1%)
CIE-LABlab(37.05, 57.66, -46.25)
CIE-LCHlch(37.05, 73.92, 321.27°)
OKLaboklab(48.29% 0.1467 -0.1299)
OKLCHoklch(48.29% 0.196 318.5)
XYZxyz(17.8500, 9.5660, 35.5494)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28A3 #41A328
analogous
#4D28A3 #8A28A3 #A3287E
triadic
#8A28A3 #A38A28 #28A38A
tetradic
#8A28A3 #A34D28 #41A328 #287EA3
square
#8A28A3 #A34D28 #41A328 #287EA3
split-complementary
#8A28A3 #7EA328 #28A34D
monochromatic
#371041 #601C72 #8A28A3 #B03ACF #C46BDB

Accessibility & contrast

On white

7.21
#8A28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A28A3
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28A3#FFFFFF#000000##FFFFFF
##8A28A31.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#2F5AA0
Tritanopia (blue-blind)
#894264
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a28a3;
/* rgb */ color: rgb(138, 40, 163);
/* oklch */ color: oklch(48.3% 0.196 318.5);
Tailwind
colors: {
  custom: {
    50: '#b06dbf',
    500: '#8a28a3',
    950: '#000000',
  },
}
SCSS
$custom: #8a28a3;
$custom-light: #b06dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28a3",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 287.805,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48287,
    "c": 0.19598,
    "h": 318.5
  },
  "luminance": 0.09565
}

Semantic roles & 50–950 ramp

primary
#8A28A3
secondary
#78C166
accent
#E44465
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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