#8C2BBA#8C2BBA

#8C2BBA is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.5% C 0.214 H 311.9°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#8C2BBA
RGBrgb(140, 43, 186)
HSLhsl(281, 62%, 45%)
HSVhsv(281, 77%, 73%)
CMYKcmyk(24.7%, 76.9%, 0%, 27.1%)
CIE-LABlab(39.32, 61.58, -56.25)
CIE-LCHlch(39.32, 83.40, 317.59°)
OKLaboklab(50.46% 0.1431 -0.1592)
OKLCHoklch(50.46% 0.214 311.9)
XYZxyz(20.5404, 10.8489, 47.4569)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2BBA #59BA2B
analogous
#442BBA #8C2BBA #BA2BA1
triadic
#8C2BBA #BA8C2B #2BBA8C
tetradic
#8C2BBA #BA442B #59BA2B #2BA1BA
square
#8C2BBA #BA442B #59BA2B #2BA1BA
split-complementary
#8C2BBA #A1BA2B #2BBA44
monochromatic
#411457 #672088 #8C2BBA #AA4CD6 #C17EE1

Accessibility & contrast

On white

6.63
#8C2BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8C2BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2BBA
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2BBA#FFFFFF#000000##FFFFFF
##8C2BBA1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#105EB7
Tritanopia (blue-blind)
#864D72
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c2bba;
/* rgb */ color: rgb(140, 43, 186);
/* oklch */ color: oklch(50.5% 0.214 311.9);
Tailwind
colors: {
  custom: {
    50: '#b26fd0',
    500: '#8c2bba',
    950: '#000000',
  },
}
SCSS
$custom: #8c2bba;
$custom-light: #b26fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2bba",
  "rgb": {
    "r": 140,
    "g": 43,
    "b": 186
  },
  "hsl": {
    "h": 280.699,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.5046,
    "c": 0.2141,
    "h": 311.9
  },
  "luminance": 0.10848
}

Semantic roles & 50–950 ramp

primary
#8C2BBA
secondary
#92CA77
accent
#E64277
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C2BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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