#8A47AD#8A47AD

#8A47AD is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.5% C 0.164 H 312.4°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A47AD
RGBrgb(138, 71, 173)
HSLhsl(279, 42%, 48%)
HSVhsv(279, 59%, 68%)
CMYKcmyk(20.2%, 59%, 0%, 32.2%)
CIE-LABlab(42.65, 45.94, -43.24)
CIE-LCHlch(42.65, 63.09, 316.73°)
OKLaboklab(52.52% 0.1108 -0.1213)
OKLCHoklch(52.52% 0.164 312.4)
XYZxyz(20.2760, 12.9274, 40.9542)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47AD #6AAD47
analogous
#5747AD #8A47AD #AD479D
triadic
#8A47AD #AD8A47 #47AD8A
tetradic
#8A47AD #AD5747 #6AAD47 #479DAD
square
#8A47AD #AD5747 #6AAD47 #479DAD
split-complementary
#8A47AD #9DAD47 #47AD57
monochromatic
#452356 #673582 #8A47AD #A66EC3 #C199D5

Accessibility & contrast

On white

5.86
#8A47AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8A47AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47AD
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47AD#FFFFFF#000000##FFFFFF
##8A47AD1.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2661B0
Deuteranopia (green-blind)
#4166AA
Tritanopia (blue-blind)
#865973
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a47ad;
/* rgb */ color: rgb(138, 71, 173);
/* oklch */ color: oklch(52.5% 0.164 312.4);
Tailwind
colors: {
  custom: {
    50: '#af7ec6',
    500: '#8a47ad',
    950: '#000000',
  },
}
SCSS
$custom: #8a47ad;
$custom-light: #af7ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47ad",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 173
  },
  "hsl": {
    "h": 279.412,
    "s": 41.803,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5252,
    "c": 0.16434,
    "h": 312.4
  },
  "luminance": 0.12927
}

Semantic roles & 50–950 ramp

primary
#8A47AD
secondary
#A0C18E
accent
#D25681
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A47AD

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

Preview Lab → · Contrast checker → · Palette generator →

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