#8A47E0#8A47E0

#8A47E0 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.0% C 0.220 H 299.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8A47E0
RGBrgb(138, 71, 224)
HSLhsl(266, 71%, 58%)
HSVhsv(266, 68%, 88%)
CMYKcmyk(38.4%, 68.3%, 0%, 12.2%)
CIE-LABlab(46.03, 57.97, -67.36)
CIE-LCHlch(46.03, 88.87, 310.72°)
OKLaboklab(56.03% 0.1073 -0.1921)
OKLCHoklch(56.03% 0.22 299.2)
XYZxyz(26.1856, 15.2913, 72.0785)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47E0 #9DE047
analogous
#4750E0 #8A47E0 #D747E0
triadic
#8A47E0 #E08A47 #47E08A
tetradic
#8A47E0 #E04750 #9DE047 #47E0D7
square
#8A47E0 #E04750 #9DE047 #47E0D7
split-complementary
#8A47E0 #E0D747 #50E047
monochromatic
#4F1994 #6B22C8 #8A47E0 #AB7BE9 #CDB0F2

Accessibility & contrast

On white

5.17
#8A47E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8A47E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47E0
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47E0#FFFFFF#000000##FFFFFF
##8A47E01.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE5
Deuteranopia (green-blind)
#006CDD
Tritanopia (blue-blind)
#766C8E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a47e0;
/* rgb */ color: rgb(138, 71, 224);
/* oklch */ color: oklch(56.0% 0.220 299.2);
Tailwind
colors: {
  custom: {
    50: '#b27feb',
    500: '#8a47e0',
    950: '#000000',
  },
}
SCSS
$custom: #8a47e0;
$custom-light: #b27feb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47e0",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 224
  },
  "hsl": {
    "h": 266.275,
    "s": 71.163,
    "l": 57.843
  },
  "oklch": {
    "l": 0.56031,
    "c": 0.22005,
    "h": 299.2
  },
  "luminance": 0.15292
}

Semantic roles & 50–950 ramp

primary
#8A47E0
secondary
#C5E0A3
accent
#EE3A9F
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A47E0

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

Preview Lab → · Contrast checker → · Palette generator →

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