#8A28C7#8A28C7

#8A28C7 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.9% C 0.228 H 307.9°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#8A28C7
RGBrgb(138, 40, 199)
HSLhsl(277, 67%, 47%)
HSVhsv(277, 80%, 78%)
CMYKcmyk(30.7%, 79.9%, 0%, 22%)
CIE-LABlab(39.66, 64.98, -63.34)
CIE-LCHlch(39.66, 90.74, 315.73°)
OKLaboklab(50.94% 0.14 -0.1801)
OKLCHoklch(50.94% 0.228 307.9)
XYZxyz(21.5466, 11.0447, 55.0185)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A28C7 #65C728
analogous
#3B28C7 #8A28C7 #C728B5
triadic
#8A28C7 #C78A28 #28C78A
tetradic
#8A28C7 #C73B28 #65C728 #28B5C7
square
#8A28C7 #C73B28 #65C728 #28B5C7
split-complementary
#8A28C7 #B5C728 #28C73B
monochromatic
#431461 #671E94 #8A28C7 #A650DC #C083E6

Accessibility & contrast

On white

6.54
#8A28C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8A28C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A28C7
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A28C7#FFFFFF#000000##FFFFFF
##8A28C71.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#005EC4
Tritanopia (blue-blind)
#805278
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a28c7;
/* rgb */ color: rgb(138, 40, 199);
/* oklch */ color: oklch(50.9% 0.228 307.9);
Tailwind
colors: {
  custom: {
    50: '#b26ed9',
    500: '#8a28c7',
    950: '#000000',
  },
}
SCSS
$custom: #8a28c7;
$custom-light: #b26ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a28c7",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 199
  },
  "hsl": {
    "h": 276.981,
    "s": 66.527,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50938,
    "c": 0.22815,
    "h": 307.9
  },
  "luminance": 0.11044
}

Semantic roles & 50–950 ramp

primary
#8A28C7
secondary
#9CCF7C
accent
#E93E80
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8A28C7

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

Preview Lab → · Contrast checker → · Palette generator →

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