#8C2DB7#8C2DB7

#8C2DB7 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.4% C 0.209 H 312.7°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8C2DB7
RGBrgb(140, 45, 183)
HSLhsl(281, 61%, 45%)
HSVhsv(281, 75%, 72%)
CMYKcmyk(23.5%, 75.4%, 0%, 28.2%)
CIE-LABlab(39.36, 60.24, -54.42)
CIE-LCHlch(39.36, 81.18, 317.90°)
OKLaboklab(50.42% 0.1419 -0.1539)
OKLCHoklch(50.42% 0.209 312.7)
XYZxyz(20.2993, 10.8717, 45.8197)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2DB7 #58B72D
analogous
#472DB7 #8C2DB7 #B72D9D
triadic
#8C2DB7 #B78C2D #2DB78C
tetradic
#8C2DB7 #B7472D #58B72D #2D9DB7
square
#8C2DB7 #B7472D #58B72D #2D9DB7
split-complementary
#8C2DB7 #9DB72D #2DB747
monochromatic
#411555 #662186 #8C2DB7 #AA4ED3 #C17FDF

Accessibility & contrast

On white

6.62
#8C2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8C2DB7
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2DB7#FFFFFF#000000##FFFFFF
##8C2DB71.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#1B5FB4
Tritanopia (blue-blind)
#874D70
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c2db7;
/* rgb */ color: rgb(140, 45, 183);
/* oklch */ color: oklch(50.4% 0.209 312.7);
Tailwind
colors: {
  custom: {
    50: '#b270cd',
    500: '#8c2db7',
    950: '#000000',
  },
}
SCSS
$custom: #8c2db7;
$custom-light: #b270cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2db7",
  "rgb": {
    "r": 140,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 281.304,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5042,
    "c": 0.2093,
    "h": 312.7
  },
  "luminance": 0.10871
}

Semantic roles & 50–950 ramp

primary
#8C2DB7
secondary
#91C878
accent
#E44476
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8C2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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