#8C2DB8#8C2DB8

#8C2DB8 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.5% C 0.210 H 312.4°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#8C2DB8
RGBrgb(140, 45, 184)
HSLhsl(281, 61%, 45%)
HSVhsv(281, 76%, 72%)
CMYKcmyk(23.9%, 75.5%, 0%, 27.8%)
CIE-LABlab(39.43, 60.44, -54.90)
CIE-LCHlch(39.43, 81.65, 317.75°)
OKLaboklab(50.49% 0.1417 -0.1553)
OKLCHoklch(50.49% 0.21 312.4)
XYZxyz(20.4038, 10.9135, 46.3698)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2DB8 #59B82D
analogous
#462DB8 #8C2DB8 #B82D9F
triadic
#8C2DB8 #B88C2D #2DB88C
tetradic
#8C2DB8 #B8462D #59B82D #2D9FB8
square
#8C2DB8 #B8462D #59B82D #2D9FB8
split-complementary
#8C2DB8 #9FB82D #2DB846
monochromatic
#411556 #672187 #8C2DB8 #AA4ED4 #C180E0

Accessibility & contrast

On white

6.60
#8C2DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8C2DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2DB8
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2DB8#FFFFFF#000000##FFFFFF
##8C2DB81.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#195FB5
Tritanopia (blue-blind)
#874D71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c2db8;
/* rgb */ color: rgb(140, 45, 184);
/* oklch */ color: oklch(50.5% 0.210 312.4);
Tailwind
colors: {
  custom: {
    50: '#b270ce',
    500: '#8c2db8',
    950: '#000000',
  },
}
SCSS
$custom: #8c2db8;
$custom-light: #b270ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2db8",
  "rgb": {
    "r": 140,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 281.007,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50492,
    "c": 0.21021,
    "h": 312.4
  },
  "luminance": 0.10913
}

Semantic roles & 50–950 ramp

primary
#8C2DB8
secondary
#92C978
accent
#E44477
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C2DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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