#8A47E4#8A47E4

#8A47E4 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.3% C 0.224 H 298.4°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8A47E4
RGBrgb(138, 71, 228)
HSLhsl(266, 74%, 59%)
HSVhsv(266, 69%, 89%)
CMYKcmyk(39.5%, 68.9%, 0%, 10.6%)
CIE-LABlab(46.33, 58.96, -69.15)
CIE-LCHlch(46.33, 90.87, 310.45°)
OKLaboklab(56.34% 0.1067 -0.1974)
OKLCHoklch(56.34% 0.224 298.4)
XYZxyz(26.7345, 15.5108, 74.9691)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47E4 #A1E447
analogous
#4752E4 #8A47E4 #D847E4
triadic
#8A47E4 #E48A47 #47E48A
tetradic
#8A47E4 #E44752 #A1E447 #47E4D8
square
#8A47E4 #E44752 #A1E447 #47E4D8
split-complementary
#8A47E4 #E4D847 #52E447
monochromatic
#4F179A #6A1ECF #8A47E4 #AC7CEC #CEB2F4

Accessibility & contrast

On white

5.12
#8A47E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#8A47E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47E4
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47E4#FFFFFF#000000##FFFFFF
##8A47E41.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE9
Deuteranopia (green-blind)
#006CE1
Tritanopia (blue-blind)
#746D90
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a47e4;
/* rgb */ color: rgb(138, 71, 228);
/* oklch */ color: oklch(56.3% 0.224 298.4);
Tailwind
colors: {
  custom: {
    50: '#b37fed',
    500: '#8a47e4',
    950: '#000000',
  },
}
SCSS
$custom: #8a47e4;
$custom-light: #b37fed;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47e4",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 228
  },
  "hsl": {
    "h": 265.605,
    "s": 74.408,
    "l": 58.627
  },
  "oklch": {
    "l": 0.56335,
    "c": 0.22436,
    "h": 298.4
  },
  "luminance": 0.15511
}

Semantic roles & 50–950 ramp

primary
#8A47E4
secondary
#C8E2A4
accent
#F137A2
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A47E4

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

Preview Lab → · Contrast checker → · Palette generator →

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