#8C2DB9#8C2DB9

#8C2DB9 is a mid, highly saturated purple. Relative luminance 0.110; OKLCH L 50.6% C 0.211 H 312.1°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#8C2DB9
RGBrgb(140, 45, 185)
HSLhsl(281, 61%, 45%)
HSVhsv(281, 76%, 73%)
CMYKcmyk(24.3%, 75.7%, 0%, 27.5%)
CIE-LABlab(39.51, 60.65, -55.37)
CIE-LCHlch(39.51, 82.12, 317.61°)
OKLaboklab(50.57% 0.1415 -0.1567)
OKLCHoklch(50.57% 0.211 312.1)
XYZxyz(20.5089, 10.9556, 46.9238)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2DB9 #5AB92D
analogous
#462DB9 #8C2DB9 #B92DA0
triadic
#8C2DB9 #B98C2D #2DB98C
tetradic
#8C2DB9 #B9462D #5AB92D #2DA0B9
square
#8C2DB9 #B9462D #5AB92D #2DA0B9
split-complementary
#8C2DB9 #A0B92D #2DB946
monochromatic
#411557 #672188 #8C2DB9 #A94FD4 #C180E0

Accessibility & contrast

On white

6.58
#8C2DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#8C2DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2DB9
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2DB9#FFFFFF#000000##FFFFFF
##8C2DB91.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BD
Deuteranopia (green-blind)
#175FB6
Tritanopia (blue-blind)
#874E72
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c2db9;
/* rgb */ color: rgb(140, 45, 185);
/* oklch */ color: oklch(50.6% 0.211 312.1);
Tailwind
colors: {
  custom: {
    50: '#b270cf',
    500: '#8c2db9',
    950: '#000000',
  },
}
SCSS
$custom: #8c2db9;
$custom-light: #b270cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2db9",
  "rgb": {
    "r": 140,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 280.714,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50565,
    "c": 0.21113,
    "h": 312.1
  },
  "luminance": 0.10955
}

Semantic roles & 50–950 ramp

primary
#8C2DB9
secondary
#93C979
accent
#E44477
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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