#8C2EC9#8C2EC9

#8C2EC9 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.9% C 0.225 H 307.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8C2EC9
RGBrgb(140, 46, 201)
HSLhsl(276, 63%, 48%)
HSVhsv(276, 77%, 79%)
CMYKcmyk(30.3%, 77.1%, 0%, 21.2%)
CIE-LABlab(40.81, 63.66, -62.61)
CIE-LCHlch(40.81, 89.29, 315.48°)
OKLaboklab(51.85% 0.1375 -0.178)
OKLCHoklch(51.85% 0.225 307.7)
XYZxyz(22.3326, 11.7468, 56.3379)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C2EC9 #6BC92E
analogous
#3E2EC9 #8C2EC9 #C92EB8
triadic
#8C2EC9 #C98C2E #2EC98C
tetradic
#8C2EC9 #C93E2E #6BC92E #2EB8C9
square
#8C2EC9 #C93E2E #6BC92E #2EB8C9
split-complementary
#8C2EC9 #B8C92E #2EC93E
monochromatic
#471765 #692397 #8C2EC9 #A85BD9 #C28DE5

Accessibility & contrast

On white

6.27
#8C2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8C2EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C2EC9
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C2EC9#FFFFFF#000000##FFFFFF
##8C2EC91.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCD
Deuteranopia (green-blind)
#0061C6
Tritanopia (blue-blind)
#82557B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8c2ec9;
/* rgb */ color: rgb(140, 46, 201);
/* oklch */ color: oklch(51.9% 0.225 307.7);
Tailwind
colors: {
  custom: {
    50: '#b371da',
    500: '#8c2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #8c2ec9;
$custom-light: #b371da;
$custom-dark: #000000;
JSON
{
  "hex": "#8c2ec9",
  "rgb": {
    "r": 140,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 276.387,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51854,
    "c": 0.22489,
    "h": 307.7
  },
  "luminance": 0.11746
}

Semantic roles & 50–950 ramp

primary
#8C2EC9
secondary
#A1CF84
accent
#E64282
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8C2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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