#8A28BC#8A28BC

#8A28BC is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.218 H 310.8°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#8A28BC
RGBrgb(138, 40, 188)
HSLhsl(280, 65%, 45%)
HSVhsv(280, 79%, 74%)
CMYKcmyk(26.6%, 78.7%, 0%, 26.3%)
CIE-LABlab(38.82, 62.68, -58.27)
CIE-LCHlch(38.82, 85.58, 317.09°)
OKLaboklab(50.09% 0.1426 -0.1652)
OKLCHoklch(50.09% 0.218 310.8)
XYZxyz(20.3154, 10.5522, 48.5338)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28BC #5ABC28
analogous
#4028BC #8A28BC #BC28A4
triadic
#8A28BC #BC8A28 #28BC8A
tetradic
#8A28BC #BC4028 #5ABC28 #28A4BC
square
#8A28BC #BC4028 #5ABC28 #28A4BC
split-complementary
#8A28BC #A4BC28 #28BC40
monochromatic
#401357 #651D8A #8A28BC #A849D8 #C07BE3

Accessibility & contrast

On white

6.75
#8A28BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8A28BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A28BC
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28BC#FFFFFF#000000##FFFFFF
##8A28BC1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#834D72
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a28bc;
/* rgb */ color: rgb(138, 40, 188);
/* oklch */ color: oklch(50.1% 0.218 310.8);
Tailwind
colors: {
  custom: {
    50: '#b16ed1',
    500: '#8a28bc',
    950: '#000000',
  },
}
SCSS
$custom: #8a28bc;
$custom-light: #b16ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28bc",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 279.73,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50088,
    "c": 0.21824,
    "h": 310.8
  },
  "luminance": 0.10552
}

Semantic roles & 50–950 ramp

primary
#8A28BC
secondary
#92CB75
accent
#E84079
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A28BC

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

Preview Lab → · Contrast checker → · Palette generator →

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