#8A47CD#8A47CD

#8A47CD is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.6% C 0.199 H 303.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8A47CD
RGBrgb(138, 71, 205)
HSLhsl(270, 57%, 54%)
HSVhsv(270, 65%, 80%)
CMYKcmyk(32.7%, 65.4%, 0%, 19.6%)
CIE-LABlab(44.69, 53.36, -58.66)
CIE-LCHlch(44.69, 79.30, 312.29°)
OKLaboklab(54.64% 0.1096 -0.1666)
OKLCHoklch(54.64% 0.199 303.4)
XYZxyz(23.7514, 14.3176, 59.2580)
Luminance0.1432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47CD #8ACD47
analogous
#4747CD #8A47CD #CD47CD
triadic
#8A47CD #CD8A47 #47CD8A
tetradic
#8A47CD #CD4747 #8ACD47 #47CDCD
square
#8A47CD #CD4747 #8ACD47 #47CDCD
split-complementary
#8A47CD #CDCD47 #47CD47
monochromatic
#4D2179 #6B2EA9 #8A47CD #A977DA #C7A7E7

Accessibility & contrast

On white

5.44
#8A47CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8A47CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47CD
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47CD#FFFFFF#000000##FFFFFF
##8A47CD1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#1769CA
Tritanopia (blue-blind)
#7D6584
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a47cd;
/* rgb */ color: rgb(138, 71, 205);
/* oklch */ color: oklch(54.6% 0.199 303.4);
Tailwind
colors: {
  custom: {
    50: '#b17edd',
    500: '#8a47cd',
    950: '#000000',
  },
}
SCSS
$custom: #8a47cd;
$custom-light: #b17edd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47cd",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 205
  },
  "hsl": {
    "h": 270,
    "s": 57.265,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54642,
    "c": 0.19941,
    "h": 303.4
  },
  "luminance": 0.14318
}

Semantic roles & 50–950 ramp

primary
#8A47CD
secondary
#B8D49B
accent
#E14794
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A47CD

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

Preview Lab → · Contrast checker → · Palette generator →

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