#8C2ED7#8C2ED7

#8C2ED7 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 53.0% C 0.238 H 304.3°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8C2ED7
RGBrgb(140, 46, 215)
HSLhsl(273, 68%, 51%)
HSVhsv(273, 79%, 84%)
CMYKcmyk(34.9%, 78.6%, 0%, 15.7%)
CIE-LABlab(41.90, 66.70, -68.93)
CIE-LCHlch(41.90, 95.92, 314.06°)
OKLaboklab(52.96% 0.1341 -0.1965)
OKLCHoklch(52.96% 0.238 304.3)
XYZxyz(24.0551, 12.4358, 65.4099)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2ED7 #79D72E
analogous
#372ED7 #8C2ED7 #D72ECD
triadic
#8C2ED7 #D78C2E #2ED78C
tetradic
#8C2ED7 #D7372E #79D72E #2ECDD7
square
#8C2ED7 #D7372E #79D72E #2ECDD7
split-complementary
#8C2ED7 #CDD72E #2ED737
monochromatic
#4B1674 #6C20A8 #8C2ED7 #A861E1 #C595EB

Accessibility & contrast

On white

6.02
#8C2ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8C2ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2ED7
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2ED7#FFFFFF#000000##FFFFFF
##8C2ED71.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DC
Deuteranopia (green-blind)
#0063D4
Tritanopia (blue-blind)
#7D5B83
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8c2ed7;
/* rgb */ color: rgb(140, 46, 215);
/* oklch */ color: oklch(53.0% 0.238 304.3);
Tailwind
colors: {
  custom: {
    50: '#b472e4',
    500: '#8c2ed7',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ed7;
$custom-light: #b472e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ed7",
  "rgb": {
    "r": 140,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 273.373,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52955,
    "c": 0.23792,
    "h": 304.3
  },
  "luminance": 0.12436
}

Semantic roles & 50–950 ramp

primary
#8C2ED7
secondary
#ACD68B
accent
#EB3D8A
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8C2ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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