#8C47E2#8C47E2

#8C47E2 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.4% C 0.222 H 299.5°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8C47E2
RGBrgb(140, 71, 226)
HSLhsl(267, 73%, 58%)
HSVhsv(267, 69%, 89%)
CMYKcmyk(38.1%, 68.6%, 0%, 11.4%)
CIE-LABlab(46.41, 58.84, -67.87)
CIE-LCHlch(46.41, 89.82, 310.92°)
OKLaboklab(56.4% 0.1097 -0.1936)
OKLCHoklch(56.4% 0.222 299.5)
XYZxyz(26.7925, 15.5726, 73.5310)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C47E2 #9DE247
analogous
#474FE2 #8C47E2 #DA47E2
triadic
#8C47E2 #E28C47 #47E28C
tetradic
#8C47E2 #E2474F #9DE247 #47E2DA
square
#8C47E2 #E2474F #9DE247 #47E2DA
split-complementary
#8C47E2 #E2DA47 #4FE247
monochromatic
#501897 #6C20CC #8C47E2 #AD7CEA #CEB1F3

Accessibility & contrast

On white

5.10
#8C47E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#8C47E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C47E2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C47E2#FFFFFF#000000##FFFFFF
##8C47E21.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE7
Deuteranopia (green-blind)
#006DDF
Tritanopia (blue-blind)
#786C8F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8c47e2;
/* rgb */ color: rgb(140, 71, 226);
/* oklch */ color: oklch(56.4% 0.222 299.5);
Tailwind
colors: {
  custom: {
    50: '#b47fec',
    500: '#8c47e2',
    950: '#000000',
  },
}
SCSS
$custom: #8c47e2;
$custom-light: #b47fec;
$custom-dark: #000000;
JSON
{
  "hex": "#8c47e2",
  "rgb": {
    "r": 140,
    "g": 71,
    "b": 226
  },
  "hsl": {
    "h": 266.71,
    "s": 72.77,
    "l": 58.235
  },
  "oklch": {
    "l": 0.56399,
    "c": 0.22248,
    "h": 299.5
  },
  "luminance": 0.15573
}

Semantic roles & 50–950 ramp

primary
#8C47E2
secondary
#C6E1A4
accent
#EF389E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8C47E2

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

Preview Lab → · Contrast checker → · Palette generator →

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