#8A28BD#8A28BD

#8A28BD is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.2% C 0.219 H 310.5°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#8A28BD
RGBrgb(138, 40, 189)
HSLhsl(279, 65%, 45%)
HSVhsv(279, 79%, 74%)
CMYKcmyk(27%, 78.8%, 0%, 25.9%)
CIE-LABlab(38.89, 62.88, -58.73)
CIE-LCHlch(38.89, 86.05, 316.95°)
OKLaboklab(50.16% 0.1424 -0.1666)
OKLCHoklch(50.16% 0.219 310.5)
XYZxyz(20.4235, 10.5955, 49.1035)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28BD #5BBD28
analogous
#3F28BD #8A28BD #BD28A6
triadic
#8A28BD #BD8A28 #28BD8A
tetradic
#8A28BD #BD3F28 #5BBD28 #28A6BD
square
#8A28BD #BD3F28 #5BBD28 #28A6BD
split-complementary
#8A28BD #A6BD28 #28BD3F
monochromatic
#401358 #651D8A #8A28BD #A84AD9 #C07CE3

Accessibility & contrast

On white

6.73
#8A28BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8A28BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A28BD
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28BD#FFFFFF#000000##FFFFFF
##8A28BD1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#834D73
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a28bd;
/* rgb */ color: rgb(138, 40, 189);
/* oklch */ color: oklch(50.2% 0.219 310.5);
Tailwind
colors: {
  custom: {
    50: '#b16ed2',
    500: '#8a28bd',
    950: '#000000',
  },
}
SCSS
$custom: #8a28bd;
$custom-light: #b16ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28bd",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 279.463,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50164,
    "c": 0.21913,
    "h": 310.5
  },
  "luminance": 0.10595
}

Semantic roles & 50–950 ramp

primary
#8A28BD
secondary
#93CB75
accent
#E84079
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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