#8A47DA#8A47DA

#8A47DA is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.6% C 0.214 H 300.4°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8A47DA
RGBrgb(138, 71, 218)
HSLhsl(267, 67%, 57%)
HSVhsv(267, 67%, 85%)
CMYKcmyk(36.7%, 67.4%, 0%, 14.5%)
CIE-LABlab(45.60, 56.50, -64.65)
CIE-LCHlch(45.60, 85.86, 311.16°)
OKLaboklab(55.58% 0.1081 -0.1842)
OKLCHoklch(55.58% 0.214 300.4)
XYZxyz(25.3863, 14.9715, 67.8684)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47DA #97DA47
analogous
#474EDA #8A47DA #D447DA
triadic
#8A47DA #DA8A47 #47DA8A
tetradic
#8A47DA #DA474E #97DA47 #47DAD4
square
#8A47DA #DA474E #97DA47 #47DAD4
split-complementary
#8A47DA #DAD447 #4EDA47
monochromatic
#4E1C8B #6B26BE #8A47DA #AA7AE4 #CBADEE

Accessibility & contrast

On white

5.26
#8A47DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#8A47DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47DA
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47DA#FFFFFF#000000##FFFFFF
##8A47DA1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDE
Deuteranopia (green-blind)
#006BD7
Tritanopia (blue-blind)
#78698B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a47da;
/* rgb */ color: rgb(138, 71, 218);
/* oklch */ color: oklch(55.6% 0.214 300.4);
Tailwind
colors: {
  custom: {
    50: '#b27fe6',
    500: '#8a47da',
    950: '#000000',
  },
}
SCSS
$custom: #8a47da;
$custom-light: #b27fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47da",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 218
  },
  "hsl": {
    "h": 267.347,
    "s": 66.516,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55583,
    "c": 0.21356,
    "h": 300.4
  },
  "luminance": 0.14972
}

Semantic roles & 50–950 ramp

primary
#8A47DA
secondary
#C1DCA0
accent
#E93E9B
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8A47DA

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

Preview Lab → · Contrast checker → · Palette generator →

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