#8945E1#8945E1

#8945E1 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.223 H 298.8°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8945E1
RGBrgb(137, 69, 225)
HSLhsl(266, 72%, 58%)
HSVhsv(266, 69%, 88%)
CMYKcmyk(39.1%, 69.3%, 0%, 11.8%)
CIE-LABlab(45.65, 58.98, -68.55)
CIE-LCHlch(45.65, 90.43, 310.71°)
OKLaboklab(55.76% 0.1077 -0.1957)
OKLCHoklch(55.76% 0.223 298.8)
XYZxyz(26.0318, 15.0105, 72.7454)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8945E1 #9DE145
analogous
#454FE1 #8945E1 #D745E1
triadic
#8945E1 #E18945 #45E189
tetradic
#8945E1 #E1454F #9DE145 #45E1D7
square
#8945E1 #E1454F #9DE145 #45E1D7
split-complementary
#8945E1 #E1D745 #4FE145
monochromatic
#4E1894 #6A20C8 #8945E1 #AA7AE9 #CCAEF2

Accessibility & contrast

On white

5.25
#8945E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#8945E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8945E1
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8945E1#FFFFFF#000000##FFFFFF
##8945E11.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8945e1;
/* rgb */ color: rgb(137, 69, 225);
/* oklch */ color: oklch(55.8% 0.223 298.8);
Tailwind
colors: {
  custom: {
    50: '#b27eeb',
    500: '#8945e1',
    950: '#000000',
  },
}
SCSS
$custom: #8945e1;
$custom-light: #b27eeb;
$custom-dark: #000000;
JSON
{
  "hex": "#8945e1",
  "rgb": {
    "r": 137,
    "g": 69,
    "b": 225
  },
  "hsl": {
    "h": 266.154,
    "s": 72.222,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55756,
    "c": 0.22336,
    "h": 298.8
  },
  "luminance": 0.15011
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8945E1

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

Preview Lab → · Contrast checker → · Palette generator →

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