#8A47D9#8A47D9

#8A47D9 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.5% C 0.212 H 300.6°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8A47D9
RGBrgb(138, 71, 217)
HSLhsl(268, 66%, 56%)
HSVhsv(268, 67%, 85%)
CMYKcmyk(36.4%, 67.3%, 0%, 14.9%)
CIE-LABlab(45.52, 56.26, -64.19)
CIE-LCHlch(45.52, 85.36, 311.23°)
OKLaboklab(55.51% 0.1083 -0.1828)
OKLCHoklch(55.51% 0.212 300.6)
XYZxyz(25.2558, 14.9193, 67.1813)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47D9 #96D947
analogous
#474DD9 #8A47D9 #D347D9
triadic
#8A47D9 #D98A47 #47D98A
tetradic
#8A47D9 #D9474D #96D947 #47D9D3
square
#8A47D9 #D9474D #96D947 #47D9D3
split-complementary
#8A47D9 #D9D347 #4DD947
monochromatic
#4E1C89 #6B27BC #8A47D9 #AA7AE3 #CBACEE

Accessibility & contrast

On white

5.27
#8A47D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#8A47D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47D9
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47D9#FFFFFF#000000##FFFFFF
##8A47D91.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a47d9;
/* rgb */ color: rgb(138, 71, 217);
/* oklch */ color: oklch(55.5% 0.212 300.6);
Tailwind
colors: {
  custom: {
    50: '#b27fe6',
    500: '#8a47d9',
    950: '#000000',
  },
}
SCSS
$custom: #8a47d9;
$custom-light: #b27fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47d9",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 217
  },
  "hsl": {
    "h": 267.534,
    "s": 65.766,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55509,
    "c": 0.21247,
    "h": 300.6
  },
  "luminance": 0.1492
}

Semantic roles & 50–950 ramp

primary
#8A47D9
secondary
#C0DCA0
accent
#E93F9B
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8A47D9

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

Preview Lab → · Contrast checker → · Palette generator →

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