#8A47CB#8A47CB

#8A47CB is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.5% C 0.197 H 303.8°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8A47CB
RGBrgb(138, 71, 203)
HSLhsl(270, 56%, 54%)
HSVhsv(270, 65%, 80%)
CMYKcmyk(32%, 65%, 0%, 20.4%)
CIE-LABlab(44.55, 52.88, -57.73)
CIE-LCHlch(44.55, 78.29, 312.49°)
OKLaboklab(54.5% 0.1098 -0.1638)
OKLCHoklch(54.5% 0.197 303.8)
XYZxyz(23.5115, 14.2216, 57.9947)
Luminance0.1422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47CB #88CB47
analogous
#4847CB #8A47CB #CB47CA
triadic
#8A47CB #CB8A47 #47CB8A
tetradic
#8A47CB #CB4847 #88CB47 #47CACB
square
#8A47CB #CB4847 #88CB47 #47CACB
split-complementary
#8A47CB #CACB47 #47CB48
monochromatic
#4C2176 #6B2FA6 #8A47CB #A877D8 #C7A6E6

Accessibility & contrast

On white

5.46
#8A47CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#8A47CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47CB
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47CB#FFFFFF#000000##FFFFFF
##8A47CB1.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#1C69C8
Tritanopia (blue-blind)
#7E6483
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a47cb;
/* rgb */ color: rgb(138, 71, 203);
/* oklch */ color: oklch(54.5% 0.197 303.8);
Tailwind
colors: {
  custom: {
    50: '#b17edc',
    500: '#8a47cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a47cb;
$custom-light: #b17edc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47cb",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 270.455,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54501,
    "c": 0.19722,
    "h": 303.8
  },
  "luminance": 0.14222
}

Semantic roles & 50–950 ramp

primary
#8A47CB
secondary
#B6D39B
accent
#DF4993
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A47CB

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

Preview Lab → · Contrast checker → · Palette generator →

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