#8A28B2#8A28B2

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

Color values

HEX#8A28B2
RGBrgb(138, 40, 178)
HSLhsl(283, 63%, 43%)
HSVhsv(283, 78%, 70%)
CMYKcmyk(22.5%, 77.5%, 0%, 30.2%)
CIE-LABlab(38.09, 60.63, -53.54)
CIE-LCHlch(38.09, 80.89, 318.55°)
OKLaboklab(49.35% 0.1445 -0.1514)
OKLCHoklch(49.35% 0.209 313.7)
XYZxyz(19.2745, 10.1358, 43.0519)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28B2 #50B228
analogous
#4528B2 #8A28B2 #B22895
triadic
#8A28B2 #B28A28 #28B28A
tetradic
#8A28B2 #B24528 #50B228 #2895B2
square
#8A28B2 #B24528 #50B228 #2895B2
split-complementary
#8A28B2 #95B228 #28B245
monochromatic
#3D124E #631D80 #8A28B2 #AA43D5 #C175E0

Accessibility & contrast

On white

6.94
#8A28B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8A28B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A28B2
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28B2#FFFFFF#000000##FFFFFF
##8A28B21.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#1A5CAF
Tritanopia (blue-blind)
#86486C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a28b2;
/* rgb */ color: rgb(138, 40, 178);
/* oklch */ color: oklch(49.3% 0.209 313.7);
Tailwind
colors: {
  custom: {
    50: '#b16dca',
    500: '#8a28b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a28b2;
$custom-light: #b16dca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28b2",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 282.609,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49345,
    "c": 0.20927,
    "h": 313.7
  },
  "luminance": 0.10135
}

Semantic roles & 50–950 ramp

primary
#8A28B2
secondary
#88C76F
accent
#E64171
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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