#8A47E6#8A47E6

#8A47E6 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.5% C 0.227 H 298.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A47E6
RGBrgb(138, 71, 230)
HSLhsl(265, 76%, 59%)
HSVhsv(265, 69%, 90%)
CMYKcmyk(40%, 69.1%, 0%, 9.8%)
CIE-LABlab(46.48, 59.45, -70.04)
CIE-LCHlch(46.48, 91.87, 310.33°)
OKLaboklab(56.49% 0.1063 -0.2)
OKLCHoklch(56.49% 0.227 298)
XYZxyz(27.0137, 15.6225, 76.4398)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47E6 #A3E647
analogous
#4754E6 #8A47E6 #DA47E6
triadic
#8A47E6 #E68A47 #47E68A
tetradic
#8A47E6 #E64754 #A3E647 #47E6DA
square
#8A47E6 #E64754 #A3E647 #47E6DA
split-complementary
#8A47E6 #E6DA47 #54E647
monochromatic
#4F159D #6A1DD3 #8A47E6 #AC7DED #CFB3F5

Accessibility & contrast

On white

5.09
#8A47E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8A47E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47E6
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47E6#FFFFFF#000000##FFFFFF
##8A47E61.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEB
Deuteranopia (green-blind)
#006CE3
Tritanopia (blue-blind)
#736E91
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a47e6;
/* rgb */ color: rgb(138, 71, 230);
/* oklch */ color: oklch(56.5% 0.227 298.0);
Tailwind
colors: {
  custom: {
    50: '#b37fef',
    500: '#8a47e6',
    950: '#000000',
  },
}
SCSS
$custom: #8a47e6;
$custom-light: #b37fef;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47e6",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 230
  },
  "hsl": {
    "h": 265.283,
    "s": 76.077,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56488,
    "c": 0.22652,
    "h": 298
  },
  "luminance": 0.15623
}

Semantic roles & 50–950 ramp

primary
#8A47E6
secondary
#C9E4A5
accent
#F335A3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8A47E6

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

Preview Lab → · Contrast checker → · Palette generator →

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