#8A47D1#8A47D1

#8A47D1 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 54.9% C 0.204 H 302.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#8A47D1
RGBrgb(138, 71, 209)
HSLhsl(269, 60%, 55%)
HSVhsv(269, 66%, 82%)
CMYKcmyk(34%, 66%, 0%, 18%)
CIE-LABlab(44.96, 54.32, -60.52)
CIE-LCHlch(44.96, 81.32, 311.91°)
OKLaboklab(54.93% 0.1092 -0.172)
OKLCHoklch(54.93% 0.204 302.4)
XYZxyz(24.2404, 14.5132, 61.8335)
Luminance0.1451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47D1 #8ED147
analogous
#4749D1 #8A47D1 #CF47D1
triadic
#8A47D1 #D18A47 #47D18A
tetradic
#8A47D1 #D14749 #8ED147 #47D1CF
square
#8A47D1 #D14749 #8ED147 #47D1CF
split-complementary
#8A47D1 #D1CF47 #49D147
monochromatic
#4D207E #6B2CAF #8A47D1 #A978DD #C8A9E9

Accessibility & contrast

On white

5.38
#8A47D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#8A47D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47D1
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47D1#FFFFFF#000000##FFFFFF
##8A47D11.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D5
Deuteranopia (green-blind)
#076ACE
Tritanopia (blue-blind)
#7C6686
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a47d1;
/* rgb */ color: rgb(138, 71, 209);
/* oklch */ color: oklch(54.9% 0.204 302.4);
Tailwind
colors: {
  custom: {
    50: '#b17ee0',
    500: '#8a47d1',
    950: '#000000',
  },
}
SCSS
$custom: #8a47d1;
$custom-light: #b17ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47d1",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 209
  },
  "hsl": {
    "h": 269.13,
    "s": 60,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54927,
    "c": 0.20377,
    "h": 302.4
  },
  "luminance": 0.14513
}

Semantic roles & 50–950 ramp

primary
#8A47D1
secondary
#BBD79D
accent
#E34596
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A47D1

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

Preview Lab → · Contrast checker → · Palette generator →

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