#8940E0#8940E0

#8940E0 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.1% C 0.228 H 299.6°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8940E0
RGBrgb(137, 64, 224)
HSLhsl(267, 72%, 56%)
HSVhsv(267, 71%, 88%)
CMYKcmyk(38.8%, 71.4%, 0%, 12.2%)
CIE-LABlab(44.75, 61.03, -69.44)
CIE-LCHlch(44.75, 92.45, 311.31°)
OKLaboklab(55.1% 0.1127 -0.1982)
OKLCHoklch(55.1% 0.228 299.6)
XYZxyz(25.6011, 14.3667, 71.9308)
Luminance0.1437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8940E0 #97E040
analogous
#4047E0 #8940E0 #D940E0
triadic
#8940E0 #E08940 #40E089
tetradic
#8940E0 #E04047 #97E040 #40E0D9
square
#8940E0 #E04047 #97E040 #40E0D9
split-complementary
#8940E0 #E0D940 #47E040
monochromatic
#4E178E #6A20C3 #8940E0 #AA75E9 #CAA9F1

Accessibility & contrast

On white

5.42
#8940E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8940E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8940E0
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8940E0#FFFFFF#000000##FFFFFF
##8940E01.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE5
Deuteranopia (green-blind)
#0069DD
Tritanopia (blue-blind)
#75688C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8940e0;
/* rgb */ color: rgb(137, 64, 224);
/* oklch */ color: oklch(55.1% 0.228 299.6);
Tailwind
colors: {
  custom: {
    50: '#b27beb',
    500: '#8940e0',
    950: '#000000',
  },
}
SCSS
$custom: #8940e0;
$custom-light: #b27beb;
$custom-dark: #000000;
JSON
{
  "hex": "#8940e0",
  "rgb": {
    "r": 137,
    "g": 64,
    "b": 224
  },
  "hsl": {
    "h": 267.375,
    "s": 72.072,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55098,
    "c": 0.22801,
    "h": 299.6
  },
  "luminance": 0.14367
}

Semantic roles & 50–950 ramp

primary
#8940E0
secondary
#C1DF9D
accent
#EF399C
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8940E0

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

Preview Lab → · Contrast checker → · Palette generator →

#8940E0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva