#8946E1#8946E1

#8946E1 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.9% C 0.222 H 298.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8946E1
RGBrgb(137, 70, 225)
HSLhsl(266, 72%, 58%)
HSVhsv(266, 69%, 88%)
CMYKcmyk(39.1%, 68.9%, 0%, 11.8%)
CIE-LABlab(45.82, 58.51, -68.28)
CIE-LCHlch(45.82, 89.92, 310.59°)
OKLaboklab(55.88% 0.1068 -0.1949)
OKLCHoklch(55.88% 0.222 298.7)
XYZxyz(26.0939, 15.1346, 72.7661)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8946E1 #9EE146
analogous
#4651E1 #8946E1 #D646E1
triadic
#8946E1 #E18946 #46E189
tetradic
#8946E1 #E14651 #9EE146 #46E1D6
square
#8946E1 #E14651 #9EE146 #46E1D6
split-complementary
#8946E1 #E1D646 #51E146
monochromatic
#4E1895 #6921C9 #8946E1 #AB7BEA #CCAFF2

Accessibility & contrast

On white

5.21
#8946E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8946E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8946E1
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8946E1#FFFFFF#000000##FFFFFF
##8946E11.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE6
Deuteranopia (green-blind)
#006BDE
Tritanopia (blue-blind)
#746C8E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8946e1;
/* rgb */ color: rgb(137, 70, 225);
/* oklch */ color: oklch(55.9% 0.222 298.7);
Tailwind
colors: {
  custom: {
    50: '#b27eeb',
    500: '#8946e1',
    950: '#000000',
  },
}
SCSS
$custom: #8946e1;
$custom-light: #b27eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#8946e1",
  "rgb": {
    "r": 137,
    "g": 70,
    "b": 225
  },
  "hsl": {
    "h": 265.935,
    "s": 72.093,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55877,
    "c": 0.22218,
    "h": 298.7
  },
  "luminance": 0.15135
}

Semantic roles & 50–950 ramp

primary
#8946E1
secondary
#C6E0A2
accent
#EF39A0
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8946E1

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

Preview Lab → · Contrast checker → · Palette generator →

#8946E1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva