#8B28B2#8B28B2

#8B28B2 is a mid, highly saturated purple. Relative luminance 0.102; OKLCH L 49.5% C 0.210 H 314.1°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#8B28B2
RGBrgb(139, 40, 178)
HSLhsl(283, 63%, 43%)
HSVhsv(283, 78%, 70%)
CMYKcmyk(21.9%, 77.5%, 0%, 30.2%)
CIE-LABlab(38.24, 60.82, -53.29)
CIE-LCHlch(38.24, 80.86, 318.77°)
OKLaboklab(49.48% 0.1458 -0.1506)
OKLCHoklch(49.48% 0.21 314.1)
XYZxyz(19.4408, 10.2216, 43.0597)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B28B2 #4FB228
analogous
#4628B2 #8B28B2 #B22894
triadic
#8B28B2 #B28B28 #28B28B
tetradic
#8B28B2 #B24628 #4FB228 #2894B2
square
#8B28B2 #B24628 #4FB228 #2894B2
split-complementary
#8B28B2 #94B228 #28B246
monochromatic
#3D124E #641D80 #8B28B2 #AB43D5 #C275E0

Accessibility & contrast

On white

6.90
#8B28B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8B28B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B28B2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B28B2#FFFFFF#000000##FFFFFF
##8B28B21.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#1C5CAF
Tritanopia (blue-blind)
#87486C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b28b2;
/* rgb */ color: rgb(139, 40, 178);
/* oklch */ color: oklch(49.5% 0.210 314.1);
Tailwind
colors: {
  custom: {
    50: '#b16dca',
    500: '#8b28b2',
    950: '#000000',
  },
}
SCSS
$custom: #8b28b2;
$custom-light: #b16dca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b28b2",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 283.043,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49483,
    "c": 0.20961,
    "h": 314.1
  },
  "luminance": 0.10221
}

Semantic roles & 50–950 ramp

primary
#8B28B2
secondary
#88C76F
accent
#E64170
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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