#8A28A2#8A28A2

#8A28A2 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.2% C 0.195 H 318.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#8A28A2
RGBrgb(138, 40, 162)
HSLhsl(288, 60%, 40%)
HSVhsv(288, 75%, 64%)
CMYKcmyk(14.8%, 75.3%, 0%, 36.5%)
CIE-LABlab(36.99, 57.47, -45.75)
CIE-LCHlch(36.99, 73.46, 321.47°)
OKLaboklab(48.22% 0.1468 -0.1285)
OKLCHoklch(48.22% 0.195 318.8)
XYZxyz(17.7607, 9.5303, 35.0794)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28A2 #40A228
analogous
#4D28A2 #8A28A2 #A2287D
triadic
#8A28A2 #A28A28 #28A28A
tetradic
#8A28A2 #A24D28 #40A228 #287DA2
square
#8A28A2 #A24D28 #40A228 #287DA2
split-complementary
#8A28A2 #7DA228 #28A24D
monochromatic
#361040 #601C71 #8A28A2 #B139CE #C46ADA

Accessibility & contrast

On white

7.23
#8A28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A28A2
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28A2#FFFFFF#000000##FFFFFF
##8A28A21.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#305A9F
Tritanopia (blue-blind)
#8A4163
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a28a2;
/* rgb */ color: rgb(138, 40, 162);
/* oklch */ color: oklch(48.2% 0.195 318.8);
Tailwind
colors: {
  custom: {
    50: '#b06dbe',
    500: '#8a28a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a28a2;
$custom-light: #b06dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28a2",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 288.197,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48219,
    "c": 0.1951,
    "h": 318.8
  },
  "luminance": 0.09529
}

Semantic roles & 50–950 ramp

primary
#8A28A2
secondary
#77C165
accent
#E44464
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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