#8B28CA#8B28CA

#8B28CA is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.3% C 0.231 H 307.5°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8B28CA
RGBrgb(139, 40, 202)
HSLhsl(277, 67%, 47%)
HSVhsv(277, 80%, 79%)
CMYKcmyk(31.2%, 80.2%, 0%, 20.8%)
CIE-LABlab(40.03, 65.77, -64.47)
CIE-LCHlch(40.03, 92.10, 315.57°)
OKLaboklab(51.3% 0.1406 -0.1834)
OKLCHoklch(51.3% 0.231 307.5)
XYZxyz(22.0646, 11.2711, 56.8788)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B28CA #67CA28
analogous
#3A28CA #8B28CA #CA28B8
triadic
#8B28CA #CA8B28 #28CA8B
tetradic
#8B28CA #CA3A28 #67CA28 #28B8CA
square
#8B28CA #CA3A28 #67CA28 #28B8CA
split-complementary
#8B28CA #B8CA28 #28CA3A
monochromatic
#451464 #681E97 #8B28CA #A752DD #C185E7

Accessibility & contrast

On white

6.45
#8B28CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8B28CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B28CA
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B28CA#FFFFFF#000000##FFFFFF
##8B28CA1.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#80537A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8b28ca;
/* rgb */ color: rgb(139, 40, 202);
/* oklch */ color: oklch(51.3% 0.231 307.5);
Tailwind
colors: {
  custom: {
    50: '#b36fdb',
    500: '#8b28ca',
    950: '#000000',
  },
}
SCSS
$custom: #8b28ca;
$custom-light: #b36fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b28ca",
  "rgb": {
    "r": 139,
    "g": 40,
    "b": 202
  },
  "hsl": {
    "h": 276.667,
    "s": 66.942,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51304,
    "c": 0.2311,
    "h": 307.5
  },
  "luminance": 0.11271
}

Semantic roles & 50–950 ramp

primary
#8B28CA
secondary
#9ED07E
accent
#EA3E81
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8B28CA

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

Preview Lab → · Contrast checker → · Palette generator →

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