#8A47E1#8A47E1

#8A47E1 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 56.1% C 0.221 H 299.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A47E1
RGBrgb(138, 71, 225)
HSLhsl(266, 72%, 58%)
HSVhsv(266, 68%, 88%)
CMYKcmyk(38.7%, 68.4%, 0%, 11.8%)
CIE-LABlab(46.10, 58.22, -67.81)
CIE-LCHlch(46.10, 89.37, 310.65°)
OKLaboklab(56.11% 0.1071 -0.1934)
OKLCHoklch(56.11% 0.221 299)
XYZxyz(26.3217, 15.3457, 72.7948)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47E1 #9EE147
analogous
#4751E1 #8A47E1 #D747E1
triadic
#8A47E1 #E18A47 #47E18A
tetradic
#8A47E1 #E14751 #9EE147 #47E1D7
square
#8A47E1 #E14751 #9EE147 #47E1D7
split-complementary
#8A47E1 #E1D747 #51E147
monochromatic
#4F1895 #6A21CA #8A47E1 #AB7CEA #CDB0F2

Accessibility & contrast

On white

5.16
#8A47E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8A47E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47E1
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47E1#FFFFFF#000000##FFFFFF
##8A47E11.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE6
Deuteranopia (green-blind)
#006CDE
Tritanopia (blue-blind)
#766C8F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a47e1;
/* rgb */ color: rgb(138, 71, 225);
/* oklch */ color: oklch(56.1% 0.221 299.0);
Tailwind
colors: {
  custom: {
    50: '#b37feb',
    500: '#8a47e1',
    950: '#000000',
  },
}
SCSS
$custom: #8a47e1;
$custom-light: #b37feb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47e1",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 225
  },
  "hsl": {
    "h": 266.104,
    "s": 71.963,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56107,
    "c": 0.22113,
    "h": 299
  },
  "luminance": 0.15346
}

Semantic roles & 50–950 ramp

primary
#8A47E1
secondary
#C6E1A3
accent
#EF39A0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A47E1

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

Preview Lab → · Contrast checker → · Palette generator →

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