#8B28BD#8B28BD

#8B28BD is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.3% C 0.219 H 310.9°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#8B28BD
RGBrgb(139, 40, 189)
HSLhsl(280, 65%, 45%)
HSVhsv(280, 79%, 74%)
CMYKcmyk(26.5%, 78.8%, 0%, 25.9%)
CIE-LABlab(39.04, 63.06, -58.49)
CIE-LCHlch(39.04, 86.00, 317.15°)
OKLaboklab(50.3% 0.1437 -0.1658)
OKLCHoklch(50.3% 0.219 310.9)
XYZxyz(20.5898, 10.6812, 49.1113)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B28BD #5ABD28
analogous
#4128BD #8B28BD #BD28A4
triadic
#8B28BD #BD8B28 #28BD8B
tetradic
#8B28BD #BD4128 #5ABD28 #28A4BD
square
#8B28BD #BD4128 #5ABD28 #28A4BD
split-complementary
#8B28BD #A4BD28 #28BD41
monochromatic
#411358 #661D8A #8B28BD #A94AD9 #C17CE3

Accessibility & contrast

On white

6.70
#8B28BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8B28BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B28BD
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B28BD#FFFFFF#000000##FFFFFF
##8B28BD1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#844D73
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8b28bd;
/* rgb */ color: rgb(139, 40, 189);
/* oklch */ color: oklch(50.3% 0.219 310.9);
Tailwind
colors: {
  custom: {
    50: '#b26ed2',
    500: '#8b28bd',
    950: '#000000',
  },
}
SCSS
$custom: #8b28bd;
$custom-light: #b26ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b28bd",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 279.866,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50298,
    "c": 0.21942,
    "h": 310.9
  },
  "luminance": 0.10681
}

Semantic roles & 50–950 ramp

primary
#8B28BD
secondary
#92CB75
accent
#E84078
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8B28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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