#8A28B1#8A28B1

#8A28B1 is a mid, highly saturated purple. Relative luminance 0.101; OKLCH L 49.3% C 0.208 H 314.0°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#8A28B1
RGBrgb(138, 40, 177)
HSLhsl(283, 63%, 43%)
HSVhsv(283, 77%, 69%)
CMYKcmyk(22%, 77.4%, 0%, 30.6%)
CIE-LABlab(38.01, 60.43, -53.07)
CIE-LCHlch(38.01, 80.42, 318.71°)
OKLaboklab(49.27% 0.1447 -0.1499)
OKLCHoklch(49.27% 0.208 314)
XYZxyz(19.1745, 10.0958, 42.5251)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28B1 #4FB128
analogous
#4628B1 #8A28B1 #B12893
triadic
#8A28B1 #B18A28 #28B18A
tetradic
#8A28B1 #B14628 #4FB128 #2893B1
square
#8A28B1 #B14628 #4FB128 #2893B1
split-complementary
#8A28B1 #93B128 #28B146
monochromatic
#3C114D #631D7F #8A28B1 #AB42D4 #C174E0

Accessibility & contrast

On white

6.96
#8A28B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8A28B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A28B1
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28B1#FFFFFF#000000##FFFFFF
##8A28B11.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#1C5CAE
Tritanopia (blue-blind)
#86486C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a28b1;
/* rgb */ color: rgb(138, 40, 177);
/* oklch */ color: oklch(49.3% 0.208 314.0);
Tailwind
colors: {
  custom: {
    50: '#b16dc9',
    500: '#8a28b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a28b1;
$custom-light: #b16dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28b1",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 282.92,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49272,
    "c": 0.20838,
    "h": 314
  },
  "luminance": 0.10095
}

Semantic roles & 50–950 ramp

primary
#8A28B1
secondary
#87C76E
accent
#E64270
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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