#8947E7#8947E7

#8947E7 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.5% C 0.227 H 297.4°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8947E7
RGBrgb(137, 71, 231)
HSLhsl(265, 77%, 59%)
HSVhsv(265, 69%, 91%)
CMYKcmyk(40.7%, 69.3%, 0%, 9.4%)
CIE-LABlab(46.44, 59.52, -70.67)
CIE-LCHlch(46.44, 92.39, 310.10°)
OKLaboklab(56.46% 0.1048 -0.2019)
OKLCHoklch(56.46% 0.227 297.4)
XYZxyz(26.9898, 15.5939, 77.1737)
Luminance0.1559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8947E7 #A5E747
analogous
#4755E7 #8947E7 #D947E7
triadic
#8947E7 #E78947 #47E789
tetradic
#8947E7 #E74755 #A5E747 #47E7D9
square
#8947E7 #E74755 #A5E747 #47E7D9
split-complementary
#8947E7 #E7D947 #55E747
monochromatic
#4E159F #681CD5 #8947E7 #AC7DEE #CEB3F5

Accessibility & contrast

On white

5.10
#8947E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8947E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8947E7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8947E7#FFFFFF#000000##FFFFFF
##8947E71.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEC
Deuteranopia (green-blind)
#006CE4
Tritanopia (blue-blind)
#716E92
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8947e7;
/* rgb */ color: rgb(137, 71, 231);
/* oklch */ color: oklch(56.5% 0.227 297.4);
Tailwind
colors: {
  custom: {
    50: '#b27ff0',
    500: '#8947e7',
    950: '#000000',
  },
}
SCSS
$custom: #8947e7;
$custom-light: #b27ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#8947e7",
  "rgb": {
    "r": 137,
    "g": 71,
    "b": 231
  },
  "hsl": {
    "h": 264.75,
    "s": 76.923,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56459,
    "c": 0.22748,
    "h": 297.4
  },
  "luminance": 0.15594
}

Semantic roles & 50–950 ramp

primary
#8947E7
secondary
#CAE4A6
accent
#F334A5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8947E7

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

Preview Lab → · Contrast checker → · Palette generator →

#8947E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva