#8A47B2#8A47B2

#8A47B2 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.8% C 0.170 H 310.8°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8A47B2
RGBrgb(138, 71, 178)
HSLhsl(278, 43%, 49%)
HSVhsv(278, 60%, 70%)
CMYKcmyk(22.5%, 60.1%, 0%, 30.2%)
CIE-LABlab(42.95, 47.06, -45.72)
CIE-LCHlch(42.95, 65.61, 315.83°)
OKLaboklab(52.83% 0.1109 -0.1286)
OKLCHoklch(52.83% 0.17 310.8)
XYZxyz(20.7689, 13.1245, 43.5501)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A47B2 #6FB247
analogous
#5547B2 #8A47B2 #B247A5
triadic
#8A47B2 #B28A47 #47B28A
tetradic
#8A47B2 #B25547 #6FB247 #47A5B2
square
#8A47B2 #B25547 #6FB247 #47A5B2
split-complementary
#8A47B2 #A5B247 #47B255
monochromatic
#46245B #683686 #8A47B2 #A670C6 #C19CD7

Accessibility & contrast

On white

5.79
#8A47B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8A47B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A47B2
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A47B2#FFFFFF#000000##FFFFFF
##8A47B21.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B5
Deuteranopia (green-blind)
#3D67AF
Tritanopia (blue-blind)
#855B76
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a47b2;
/* rgb */ color: rgb(138, 71, 178);
/* oklch */ color: oklch(52.8% 0.170 310.8);
Tailwind
colors: {
  custom: {
    50: '#af7ec9',
    500: '#8a47b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a47b2;
$custom-light: #af7ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a47b2",
  "rgb": {
    "r": 138,
    "g": 71,
    "b": 178
  },
  "hsl": {
    "h": 277.57,
    "s": 42.972,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52832,
    "c": 0.16981,
    "h": 310.8
  },
  "luminance": 0.13124
}

Semantic roles & 50–950 ramp

primary
#8A47B2
secondary
#A4C491
accent
#D35584
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A47B2

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

Preview Lab → · Contrast checker → · Palette generator →

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