#8B28B7#8B28B7

#8B28B7 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.8% C 0.214 H 312.6°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8B28B7
RGBrgb(139, 40, 183)
HSLhsl(282, 64%, 44%)
HSVhsv(282, 78%, 72%)
CMYKcmyk(24%, 78.1%, 0%, 28.2%)
CIE-LABlab(38.60, 61.83, -55.67)
CIE-LCHlch(38.60, 83.20, 318.00°)
OKLaboklab(49.85% 0.1449 -0.1576)
OKLCHoklch(49.85% 0.214 312.6)
XYZxyz(19.9519, 10.4260, 45.7520)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B28B7 #54B728
analogous
#4328B7 #8B28B7 #B7289B
triadic
#8B28B7 #B78B28 #28B78B
tetradic
#8B28B7 #B74328 #54B728 #289BB7
square
#8B28B7 #B74328 #54B728 #289BB7
split-complementary
#8B28B7 #9BB728 #28B743
monochromatic
#3F1253 #651D85 #8B28B7 #AA46D6 #C178E1

Accessibility & contrast

On white

6.81
#8B28B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8B28B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B28B7
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B28B7#FFFFFF#000000##FFFFFF
##8B28B71.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#105DB4
Tritanopia (blue-blind)
#864A6F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8b28b7;
/* rgb */ color: rgb(139, 40, 183);
/* oklch */ color: oklch(49.8% 0.214 312.6);
Tailwind
colors: {
  custom: {
    50: '#b26ecd',
    500: '#8b28b7',
    950: '#000000',
  },
}
SCSS
$custom: #8b28b7;
$custom-light: #b26ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b28b7",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 281.538,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49849,
    "c": 0.21406,
    "h": 312.6
  },
  "luminance": 0.10425
}

Semantic roles & 50–950 ramp

primary
#8B28B7
secondary
#8DC972
accent
#E74174
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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