#8A47D8#8A47D8

#8A47D8 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.4% C 0.211 H 300.9°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8A47D8
RGBrgb(138, 71, 216)
HSLhsl(268, 65%, 56%)
HSVhsv(268, 67%, 85%)
CMYKcmyk(36.1%, 67.1%, 0%, 15.3%)
CIE-LABlab(45.45, 56.02, -63.73)
CIE-LCHlch(45.45, 84.85, 311.31°)
OKLaboklab(55.44% 0.1084 -0.1815)
OKLCHoklch(55.44% 0.211 300.9)
XYZxyz(25.1261, 14.8675, 66.4984)
Luminance0.1487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47D8 #95D847
analogous
#474DD8 #8A47D8 #D247D8
triadic
#8A47D8 #D88A47 #47D88A
tetradic
#8A47D8 #D8474D #95D847 #47D8D2
square
#8A47D8 #D8474D #95D847 #47D8D2
split-complementary
#8A47D8 #D8D247 #4DD847
monochromatic
#4E1D88 #6B27BA #8A47D8 #AA79E3 #CAACED

Accessibility & contrast

On white

5.28
#8A47D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8A47D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47D8
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47D8#FFFFFF#000000##FFFFFF
##8A47D81.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#79698A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a47d8;
/* rgb */ color: rgb(138, 71, 216);
/* oklch */ color: oklch(55.4% 0.211 300.9);
Tailwind
colors: {
  custom: {
    50: '#b27fe5',
    500: '#8a47d8',
    950: '#000000',
  },
}
SCSS
$custom: #8a47d8;
$custom-light: #b27fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47d8",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 216
  },
  "hsl": {
    "h": 267.724,
    "s": 65.022,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55436,
    "c": 0.21139,
    "h": 300.9
  },
  "luminance": 0.14868
}

Semantic roles & 50–950 ramp

primary
#8A47D8
secondary
#C0DBA0
accent
#E8409A
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8A47D8

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

Preview Lab → · Contrast checker → · Palette generator →

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