#8B28C7#8B28C7

#8B28C7 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 51.1% C 0.228 H 308.2°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#8B28C7
RGBrgb(139, 40, 199)
HSLhsl(277, 67%, 47%)
HSVhsv(277, 80%, 78%)
CMYKcmyk(30.2%, 79.9%, 0%, 22%)
CIE-LABlab(39.80, 65.14, -63.10)
CIE-LCHlch(39.80, 90.69, 315.91°)
OKLaboklab(51.07% 0.1414 -0.1794)
OKLCHoklch(51.07% 0.228 308.2)
XYZxyz(21.7129, 11.1304, 55.0263)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B28C7 #64C728
analogous
#3B28C7 #8B28C7 #C728B4
triadic
#8B28C7 #C78B28 #28C78B
tetradic
#8B28C7 #C73B28 #64C728 #28B4C7
square
#8B28C7 #C73B28 #64C728 #28B4C7
split-complementary
#8B28C7 #B4C728 #28C73B
monochromatic
#441461 #671E94 #8B28C7 #A750DC #C183E6

Accessibility & contrast

On white

6.51
#8B28C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8B28C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B28C7
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B28C7#FFFFFF#000000##FFFFFF
##8B28C71.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#005FC4
Tritanopia (blue-blind)
#815278
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8b28c7;
/* rgb */ color: rgb(139, 40, 199);
/* oklch */ color: oklch(51.1% 0.228 308.2);
Tailwind
colors: {
  custom: {
    50: '#b36fd9',
    500: '#8b28c7',
    950: '#000000',
  },
}
SCSS
$custom: #8b28c7;
$custom-light: #b36fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b28c7",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 199
  },
  "hsl": {
    "h": 277.358,
    "s": 66.527,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51068,
    "c": 0.22839,
    "h": 308.2
  },
  "luminance": 0.1113
}

Semantic roles & 50–950 ramp

primary
#8B28C7
secondary
#9BCF7C
accent
#E93E7F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8B28C7

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

Preview Lab → · Contrast checker → · Palette generator →

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