#8A47CA#8A47CA

#8A47CA is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.4% C 0.196 H 304.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8A47CA
RGBrgb(138, 71, 202)
HSLhsl(271, 55%, 54%)
HSVhsv(271, 65%, 79%)
CMYKcmyk(31.7%, 64.9%, 0%, 20.8%)
CIE-LABlab(44.48, 52.64, -57.26)
CIE-LCHlch(44.48, 77.78, 312.60°)
OKLaboklab(54.43% 0.1099 -0.1624)
OKLCHoklch(54.43% 0.196 304.1)
XYZxyz(23.3927, 14.1741, 57.3692)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47CA #87CA47
analogous
#4847CA #8A47CA #CA47C8
triadic
#8A47CA #CA8A47 #47CA8A
tetradic
#8A47CA #CA4847 #87CA47 #47C8CA
square
#8A47CA #CA4847 #87CA47 #47C8CA
split-complementary
#8A47CA #C8CA47 #47CA48
monochromatic
#4C2275 #6B2FA4 #8A47CA #A877D8 #C6A6E5

Accessibility & contrast

On white

5.48
#8A47CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8A47CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47CA
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47CA#FFFFFF#000000##FFFFFF
##8A47CA1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#1E69C7
Tritanopia (blue-blind)
#7E6382
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a47ca;
/* rgb */ color: rgb(138, 71, 202);
/* oklch */ color: oklch(54.4% 0.196 304.1);
Tailwind
colors: {
  custom: {
    50: '#b17edb',
    500: '#8a47ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a47ca;
$custom-light: #b17edb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47ca",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 202
  },
  "hsl": {
    "h": 270.687,
    "s": 55.274,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54431,
    "c": 0.19613,
    "h": 304.1
  },
  "luminance": 0.14174
}

Semantic roles & 50–950 ramp

primary
#8A47CA
secondary
#B6D29A
accent
#DF4992
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A47CA

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

Preview Lab → · Contrast checker → · Palette generator →

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