#8C27CA#8C27CA

#8C27CA is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.4% C 0.232 H 307.9°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8C27CA
RGBrgb(140, 39, 202)
HSLhsl(277, 68%, 47%)
HSVhsv(277, 81%, 79%)
CMYKcmyk(30.7%, 80.7%, 0%, 20.8%)
CIE-LABlab(40.07, 66.25, -64.41)
CIE-LCHlch(40.07, 92.40, 315.81°)
OKLaboklab(51.36% 0.1427 -0.1832)
OKLCHoklch(51.36% 0.232 307.9)
XYZxyz(22.1991, 11.2911, 56.8756)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C27CA #65CA27
analogous
#3B27CA #8C27CA #CA27B7
triadic
#8C27CA #CA8C27 #27CA8C
tetradic
#8C27CA #CA3B27 #65CA27 #27B7CA
square
#8C27CA #CA3B27 #65CA27 #27B7CA
split-complementary
#8C27CA #B7CA27 #27CA3B
monochromatic
#451363 #681D97 #8C27CA #A851DD #C284E7

Accessibility & contrast

On white

6.45
#8C27CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8C27CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C27CA
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C27CA#FFFFFF#000000##FFFFFF
##8C27CA1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#005FC7
Tritanopia (blue-blind)
#82537A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8c27ca;
/* rgb */ color: rgb(140, 39, 202);
/* oklch */ color: oklch(51.4% 0.232 307.9);
Tailwind
colors: {
  custom: {
    50: '#b46edb',
    500: '#8c27ca',
    950: '#000000',
  },
}
SCSS
$custom: #8c27ca;
$custom-light: #b46edb;
$custom-dark: #000000;
JSON
{
  "hex": "#8c27ca",
  "rgb": {
    "r": 140,
    "g": 39,
    "b": 202
  },
  "hsl": {
    "h": 277.178,
    "s": 67.635,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51357,
    "c": 0.2322,
    "h": 307.9
  },
  "luminance": 0.11291
}

Semantic roles & 50–950 ramp

primary
#8C27CA
secondary
#9CD07C
accent
#EB3D7F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8C27CA

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

Preview Lab → · Contrast checker → · Palette generator →

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