#8C2CB8#8C2CB8

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

Color values

HEX#8C2CB8
RGBrgb(140, 44, 184)
HSLhsl(281, 61%, 45%)
HSVhsv(281, 76%, 72%)
CMYKcmyk(23.9%, 76.1%, 0%, 27.8%)
CIE-LABlab(39.31, 60.81, -55.10)
CIE-LCHlch(39.31, 82.06, 317.82°)
OKLaboklab(50.4% 0.1426 -0.1559)
OKLCHoklch(50.4% 0.211 312.4)
XYZxyz(20.3661, 10.8381, 46.3572)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2CB8 #58B82C
analogous
#462CB8 #8C2CB8 #B82C9E
triadic
#8C2CB8 #B88C2C #2CB88C
tetradic
#8C2CB8 #B8462C #58B82C #2C9EB8
square
#8C2CB8 #B8462C #58B82C #2C9EB8
split-complementary
#8C2CB8 #9EB82C #2CB846
monochromatic
#411455 #662087 #8C2CB8 #AA4DD4 #C17EE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8C2CB8#FFFFFF#000000##FFFFFF
##8C2CB81.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)
#0058BC
Deuteranopia (green-blind)
#175EB5
Tritanopia (blue-blind)
#874D71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c2cb8;
/* rgb */ color: rgb(140, 44, 184);
/* oklch */ color: oklch(50.4% 0.211 312.4);
Tailwind
colors: {
  custom: {
    50: '#b270ce',
    500: '#8c2cb8',
    950: '#000000',
  },
}
SCSS
$custom: #8c2cb8;
$custom-light: #b270ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2cb8",
  "rgb": {
    "r": 140,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 281.143,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50402,
    "c": 0.21125,
    "h": 312.4
  },
  "luminance": 0.10838
}

Semantic roles & 50–950 ramp

primary
#8C2CB8
secondary
#91C977
accent
#E54376
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C2CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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