#8A47CC#8A47CC

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

Color values

HEX#8A47CC
RGBrgb(138, 71, 204)
HSLhsl(270, 57%, 54%)
HSVhsv(270, 65%, 80%)
CMYKcmyk(32.4%, 65.2%, 0%, 20%)
CIE-LABlab(44.62, 53.12, -58.19)
CIE-LCHlch(44.62, 78.79, 312.39°)
OKLaboklab(54.57% 0.1097 -0.1652)
OKLCHoklch(54.57% 0.198 303.6)
XYZxyz(23.6311, 14.2694, 58.6244)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47CC #89CC47
analogous
#4847CC #8A47CC #CC47CB
triadic
#8A47CC #CC8A47 #47CC8A
tetradic
#8A47CC #CC4847 #89CC47 #47CBCC
square
#8A47CC #CC4847 #89CC47 #47CBCC
split-complementary
#8A47CC #CBCC47 #47CC48
monochromatic
#4D2177 #6B2EA7 #8A47CC #A877D9 #C7A7E7

Accessibility & contrast

On white

5.45
#8A47CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8A47CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47CC
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47CC#FFFFFF#000000##FFFFFF
##8A47CC1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#1969C9
Tritanopia (blue-blind)
#7D6483
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a47cc;
/* rgb */ color: rgb(138, 71, 204);
/* oklch */ color: oklch(54.6% 0.198 303.6);
Tailwind
colors: {
  custom: {
    50: '#b17edc',
    500: '#8a47cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a47cc;
$custom-light: #b17edc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47cc",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 204
  },
  "hsl": {
    "h": 270.226,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54572,
    "c": 0.19831,
    "h": 303.6
  },
  "luminance": 0.14269
}

Semantic roles & 50–950 ramp

primary
#8A47CC
secondary
#B7D49B
accent
#E04893
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A47CC

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

Preview Lab → · Contrast checker → · Palette generator →

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