#8C2EB4#8C2EB4

#8C2EB4 is a mid, highly saturated purple. Relative luminance 0.108; OKLCH L 50.3% C 0.205 H 313.5°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#8C2EB4
RGBrgb(140, 46, 180)
HSLhsl(282, 59%, 44%)
HSVhsv(282, 74%, 71%)
CMYKcmyk(22.2%, 74.4%, 0%, 29.4%)
CIE-LABlab(39.28, 59.24, -52.77)
CIE-LCHlch(39.28, 79.34, 318.30°)
OKLaboklab(50.3% 0.1414 -0.1491)
OKLCHoklch(50.3% 0.205 313.5)
XYZxyz(20.0290, 10.8254, 44.2056)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2EB4 #56B42E
analogous
#492EB4 #8C2EB4 #B42E99
triadic
#8C2EB4 #B48C2E #2EB48C
tetradic
#8C2EB4 #B4492E #56B42E #2E99B4
square
#8C2EB4 #B4492E #56B42E #2E99B4
split-complementary
#8C2EB4 #99B42E #2EB449
monochromatic
#401553 #662283 #8C2EB4 #AA4ED2 #C27EDE

Accessibility & contrast

On white

6.64
#8C2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8C2EB4
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2EB4#FFFFFF#000000##FFFFFF
##8C2EB41.006.643.176.64
#FFFFFF6.641.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B8
Deuteranopia (green-blind)
#225FB1
Tritanopia (blue-blind)
#884C6F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8c2eb4;
/* rgb */ color: rgb(140, 46, 180);
/* oklch */ color: oklch(50.3% 0.205 313.5);
Tailwind
colors: {
  custom: {
    50: '#b270cb',
    500: '#8c2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #8c2eb4;
$custom-light: #b270cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2eb4",
  "rgb": {
    "r": 140,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 282.09,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50298,
    "c": 0.20546,
    "h": 313.5
  },
  "luminance": 0.10825
}

Semantic roles & 50–950 ramp

primary
#8C2EB4
secondary
#8FC777
accent
#E24574
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8C2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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