#8B28C3#8B28C3

#8B28C3 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.8% C 0.225 H 309.3°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#8B28C3
RGBrgb(139, 40, 195)
HSLhsl(278, 66%, 46%)
HSVhsv(278, 79%, 76%)
CMYKcmyk(28.7%, 79.5%, 0%, 23.5%)
CIE-LABlab(39.49, 64.30, -61.27)
CIE-LCHlch(39.49, 88.82, 316.38°)
OKLaboklab(50.76% 0.1423 -0.174)
OKLCHoklch(50.76% 0.225 309.3)
XYZxyz(21.2546, 10.9471, 52.6125)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B28C3 #60C328
analogous
#3E28C3 #8B28C3 #C328AD
triadic
#8B28C3 #C38B28 #28C38B
tetradic
#8B28C3 #C33E28 #60C328 #28ADC3
square
#8B28C3 #C33E28 #60C328 #28ADC3
split-complementary
#8B28C3 #ADC328 #28C33E
monochromatic
#43135D #671E90 #8B28C3 #A84EDB #C180E5

Accessibility & contrast

On white

6.58
#8B28C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8B28C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B28C3
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B28C3#FFFFFF#000000##FFFFFF
##8B28C31.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#005EC0
Tritanopia (blue-blind)
#825076
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8b28c3;
/* rgb */ color: rgb(139, 40, 195);
/* oklch */ color: oklch(50.8% 0.225 309.3);
Tailwind
colors: {
  custom: {
    50: '#b26ed6',
    500: '#8b28c3',
    950: '#000000',
  },
}
SCSS
$custom: #8b28c3;
$custom-light: #b26ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#8b28c3",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 195
  },
  "hsl": {
    "h": 278.323,
    "s": 65.957,
    "l": 46.078
  },
  "oklch": {
    "l": 0.50757,
    "c": 0.2248,
    "h": 309.3
  },
  "luminance": 0.10947
}

Semantic roles & 50–950 ramp

primary
#8B28C3
secondary
#98CE79
accent
#E93F7C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8B28C3

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

Preview Lab → · Contrast checker → · Palette generator →

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