#8747C2#8747C2

#8747C2 is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.5% C 0.187 H 304.8°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8747C2
RGBrgb(135, 71, 194)
HSLhsl(271, 50%, 52%)
HSVhsv(271, 63%, 76%)
CMYKcmyk(30.4%, 63.4%, 0%, 23.9%)
CIE-LABlab(43.58, 50.08, -54.09)
CIE-LCHlch(43.58, 73.71, 312.80°)
OKLaboklab(53.53% 0.1065 -0.1532)
OKLCHoklch(53.53% 0.187 304.8)
XYZxyz(21.9804, 13.5525, 52.4864)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8747C2 #82C247
analogous
#4A47C2 #8747C2 #C247BF
triadic
#8747C2 #C28747 #47C287
tetradic
#8747C2 #C24A47 #82C247 #47BFC2
square
#8747C2 #C24A47 #82C247 #47BFC2
split-complementary
#8747C2 #BFC247 #47C24A
monochromatic
#49246B #683399 #8747C2 #A575D1 #C3A3E0

Accessibility & contrast

On white

5.66
#8747C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8747C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8747C2
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8747C2#FFFFFF#000000##FFFFFF
##8747C21.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#2767BF
Tritanopia (blue-blind)
#7C617E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8747c2;
/* rgb */ color: rgb(135, 71, 194);
/* oklch */ color: oklch(53.5% 0.187 304.8);
Tailwind
colors: {
  custom: {
    50: '#ae7ed5',
    500: '#8747c2',
    950: '#000000',
  },
}
SCSS
$custom: #8747c2;
$custom-light: #ae7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#8747c2",
  "rgb": {
    "r": 135,
    "g": 71,
    "b": 194
  },
  "hsl": {
    "h": 271.22,
    "s": 50.204,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53534,
    "c": 0.1866,
    "h": 304.8
  },
  "luminance": 0.13552
}

Semantic roles & 50–950 ramp

primary
#8747C2
secondary
#B1CD97
accent
#DA4E91
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8747C2

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

Preview Lab → · Contrast checker → · Palette generator →

#8747C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva