#8E27CA#8E27CA

#8E27CA is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.6% C 0.233 H 308.7°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8E27CA
RGBrgb(142, 39, 202)
HSLhsl(278, 68%, 47%)
HSVhsv(278, 81%, 79%)
CMYKcmyk(29.7%, 80.7%, 0%, 20.8%)
CIE-LABlab(40.36, 66.57, -63.92)
CIE-LCHlch(40.36, 92.29, 316.16°)
OKLaboklab(51.62% 0.1454 -0.1817)
OKLCHoklch(51.62% 0.233 308.7)
XYZxyz(22.5393, 11.4665, 56.8916)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E27CA #63CA27
analogous
#3C27CA #8E27CA #CA27B5
triadic
#8E27CA #CA8E27 #27CA8E
tetradic
#8E27CA #CA3C27 #63CA27 #27B5CA
square
#8E27CA #CA3C27 #63CA27 #27B5CA
split-complementary
#8E27CA #B5CA27 #27CA3C
monochromatic
#461363 #6A1D97 #8E27CA #AA51DD #C384E7

Accessibility & contrast

On white

6.38
#8E27CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8E27CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E27CA
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E27CA#FFFFFF#000000##FFFFFF
##8E27CA1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#84527A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8e27ca;
/* rgb */ color: rgb(142, 39, 202);
/* oklch */ color: oklch(51.6% 0.233 308.7);
Tailwind
colors: {
  custom: {
    50: '#b56fdb',
    500: '#8e27ca',
    950: '#000000',
  },
}
SCSS
$custom: #8e27ca;
$custom-light: #b56fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e27ca",
  "rgb": {
    "r": 142,
    "g": 39,
    "b": 202
  },
  "hsl": {
    "h": 277.914,
    "s": 67.635,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51618,
    "c": 0.2327,
    "h": 308.7
  },
  "luminance": 0.11466
}

Semantic roles & 50–950 ramp

primary
#8E27CA
secondary
#9BD07C
accent
#EB3D7D
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120815
muted
#817B83

Preview Lab

Preview with #8E27CA

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

Preview Lab → · Contrast checker → · Palette generator →

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