#8C2391#8C2391

#8C2391 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.187 H 326.0°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#8C2391
RGBrgb(140, 35, 145)
HSLhsl(297, 61%, 35%)
HSVhsv(297, 76%, 57%)
CMYKcmyk(3.4%, 75.9%, 0%, 43.1%)
CIE-LABlab(35.64, 56.48, -37.56)
CIE-LCHlch(35.64, 67.83, 326.38°)
OKLaboklab(46.98% 0.1551 -0.1044)
OKLCHoklch(46.98% 0.187 326)
XYZxyz(16.5268, 8.8230, 27.6151)
Luminance0.0882 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2391 #289123
analogous
#552391 #8C2391 #91235F
triadic
#8C2391 #918C23 #23918C
tetradic
#8C2391 #915523 #289123 #235F91
square
#8C2391 #915523 #289123 #235F91
split-complementary
#8C2391 #5F9123 #239155
monochromatic
#2D0B2E #5C1760 #8C2391 #BC2FC2 #D158D7

Accessibility & contrast

On white

7.60
#8C2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8C2391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8C2391
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2391#FFFFFF#000000##FFFFFF
##8C23911.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C94
Deuteranopia (green-blind)
#3D588E
Tritanopia (blue-blind)
#903659
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8c2391;
/* rgb */ color: rgb(140, 35, 145);
/* oklch */ color: oklch(47.0% 0.187 326.0);
Tailwind
colors: {
  custom: {
    50: '#b16ab2',
    500: '#8c2391',
    950: '#000000',
  },
}
SCSS
$custom: #8c2391;
$custom-light: #b16ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2391",
  "rgb": {
    "r": 140,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 297.273,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.46984,
    "c": 0.18697,
    "h": 326
  },
  "luminance": 0.08822
}

Semantic roles & 50–950 ramp

primary
#8C2391
secondary
#5ABB55
accent
#E4444B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8C2391

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

Preview Lab → · Contrast checker → · Palette generator →

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