#8B2AC7#8B2AC7

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

Color values

HEX#8B2AC7
RGBrgb(139, 42, 199)
HSLhsl(277, 65%, 47%)
HSVhsv(277, 79%, 78%)
CMYKcmyk(30.2%, 78.9%, 0%, 22%)
CIE-LABlab(40.03, 64.47, -62.73)
CIE-LCHlch(40.03, 89.95, 315.79°)
OKLaboklab(51.23% 0.1398 -0.1783)
OKLCHoklch(51.23% 0.227 308.1)
XYZxyz(21.7821, 11.2688, 55.0494)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2AC7 #66C72A
analogous
#3D2AC7 #8B2AC7 #C72AB5
triadic
#8B2AC7 #C78B2A #2AC78B
tetradic
#8B2AC7 #C73D2A #66C72A #2AB5C7
square
#8B2AC7 #C73D2A #66C72A #2AB5C7
split-complementary
#8B2AC7 #B5C72A #2AC73D
monochromatic
#441562 #681F94 #8B2AC7 #A753DB #C186E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B2AC7#FFFFFF#000000##FFFFFF
##8B2AC71.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)
#005BCB
Deuteranopia (green-blind)
#005FC4
Tritanopia (blue-blind)
#815379
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8b2ac7;
/* rgb */ color: rgb(139, 42, 199);
/* oklch */ color: oklch(51.2% 0.227 308.1);
Tailwind
colors: {
  custom: {
    50: '#b36fd9',
    500: '#8b2ac7',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ac7;
$custom-light: #b36fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ac7",
  "rgb": {
    "r": 139,
    "g": 42,
    "b": 199
  },
  "hsl": {
    "h": 277.07,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51229,
    "c": 0.2266,
    "h": 308.1
  },
  "luminance": 0.11268
}

Semantic roles & 50–950 ramp

primary
#8B2AC7
secondary
#9DCF7E
accent
#E84080
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8B2AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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