#8C2ED5#8C2ED5

#8C2ED5 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.8% C 0.236 H 304.8°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8C2ED5
RGBrgb(140, 46, 213)
HSLhsl(274, 67%, 51%)
HSVhsv(274, 78%, 84%)
CMYKcmyk(34.3%, 78.4%, 0%, 16.5%)
CIE-LABlab(41.74, 66.26, -68.04)
CIE-LCHlch(41.74, 94.97, 314.24°)
OKLaboklab(52.8% 0.1346 -0.1939)
OKLCHoklch(52.8% 0.236 304.8)
XYZxyz(23.7997, 12.3337, 64.0647)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2ED5 #77D52E
analogous
#382ED5 #8C2ED5 #D52ECB
triadic
#8C2ED5 #D58C2E #2ED58C
tetradic
#8C2ED5 #D5382E #77D52E #2ECBD5
square
#8C2ED5 #D5382E #77D52E #2ECBD5
split-complementary
#8C2ED5 #CBD52E #2ED538
monochromatic
#4A1772 #6B21A5 #8C2ED5 #A861DF #C494E9

Accessibility & contrast

On white

6.06
#8C2ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8C2ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2ED5
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2ED5#FFFFFF#000000##FFFFFF
##8C2ED51.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DA
Deuteranopia (green-blind)
#0062D2
Tritanopia (blue-blind)
#7E5A82
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8c2ed5;
/* rgb */ color: rgb(140, 46, 213);
/* oklch */ color: oklch(52.8% 0.236 304.8);
Tailwind
colors: {
  custom: {
    50: '#b472e3',
    500: '#8c2ed5',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ed5;
$custom-light: #b472e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ed5",
  "rgb": {
    "r": 140,
    "g": 46,
    "b": 213
  },
  "hsl": {
    "h": 273.772,
    "s": 66.534,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52795,
    "c": 0.23606,
    "h": 304.8
  },
  "luminance": 0.12334
}

Semantic roles & 50–950 ramp

primary
#8C2ED5
secondary
#ABD48A
accent
#E93E89
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8C2ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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