#8A47D4#8A47D4

#8A47D4 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.1% C 0.207 H 301.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#8A47D4
RGBrgb(138, 71, 212)
HSLhsl(269, 62%, 55%)
HSVhsv(269, 67%, 83%)
CMYKcmyk(34.9%, 66.5%, 0%, 16.9%)
CIE-LABlab(45.17, 55.05, -61.90)
CIE-LCHlch(45.17, 82.84, 311.65°)
OKLaboklab(55.14% 0.1089 -0.1761)
OKLCHoklch(55.14% 0.207 301.7)
XYZxyz(24.6153, 14.6631, 63.8080)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47D4 #91D447
analogous
#474AD4 #8A47D4 #D147D4
triadic
#8A47D4 #D48A47 #47D48A
tetradic
#8A47D4 #D4474A #91D447 #47D4D1
square
#8A47D4 #D4474A #91D447 #47D4D1
split-complementary
#8A47D4 #D4D147 #4AD447
monochromatic
#4E1E82 #6B2AB4 #8A47D4 #AA79E0 #C9AAEB

Accessibility & contrast

On white

5.34
#8A47D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#8A47D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47D4
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47D4#FFFFFF#000000##FFFFFF
##8A47D41.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD8
Deuteranopia (green-blind)
#006AD1
Tritanopia (blue-blind)
#7B6788
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a47d4;
/* rgb */ color: rgb(138, 71, 212);
/* oklch */ color: oklch(55.1% 0.207 301.7);
Tailwind
colors: {
  custom: {
    50: '#b17fe2',
    500: '#8a47d4',
    950: '#000000',
  },
}
SCSS
$custom: #8a47d4;
$custom-light: #b17fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47d4",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 212
  },
  "hsl": {
    "h": 268.511,
    "s": 62.115,
    "l": 55.49
  },
  "oklch": {
    "l": 0.55144,
    "c": 0.20704,
    "h": 301.7
  },
  "luminance": 0.14663
}

Semantic roles & 50–950 ramp

primary
#8A47D4
secondary
#BDD99E
accent
#E54398
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8A47D4

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

Preview Lab → · Contrast checker → · Palette generator →

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