#8A28C2#8A28C2

#8A28C2 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.5% C 0.224 H 309.2°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8A28C2
RGBrgb(138, 40, 194)
HSLhsl(278, 66%, 46%)
HSVhsv(278, 79%, 76%)
CMYKcmyk(28.9%, 79.4%, 0%, 23.9%)
CIE-LABlab(39.27, 63.92, -61.05)
CIE-LCHlch(39.27, 88.39, 316.32°)
OKLaboklab(50.55% 0.1412 -0.1734)
OKLCHoklch(50.55% 0.224 309.2)
XYZxyz(20.9756, 10.8163, 52.0112)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28C2 #60C228
analogous
#3D28C2 #8A28C2 #C228AD
triadic
#8A28C2 #C28A28 #28C28A
tetradic
#8A28C2 #C23D28 #60C228 #28ADC2
square
#8A28C2 #C23D28 #60C228 #28ADC2
split-complementary
#8A28C2 #ADC228 #28C23D
monochromatic
#42135D #661E8F #8A28C2 #A74DDA #C080E5

Accessibility & contrast

On white

6.64
#8A28C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8A28C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A28C2
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28C2#FFFFFF#000000##FFFFFF
##8A28C21.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#005EBF
Tritanopia (blue-blind)
#815076
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a28c2;
/* rgb */ color: rgb(138, 40, 194);
/* oklch */ color: oklch(50.5% 0.224 309.2);
Tailwind
colors: {
  custom: {
    50: '#b26ed5',
    500: '#8a28c2',
    950: '#000000',
  },
}
SCSS
$custom: #8a28c2;
$custom-light: #b26ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28c2",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 194
  },
  "hsl": {
    "h": 278.182,
    "s": 65.812,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50548,
    "c": 0.22363,
    "h": 309.2
  },
  "luminance": 0.10816
}

Semantic roles & 50–950 ramp

primary
#8A28C2
secondary
#97CD78
accent
#E93F7D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A28C2

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

Preview Lab → · Contrast checker → · Palette generator →

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