#8840E0#8840E0

#8840E0 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 55.0% C 0.228 H 299.2°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8840E0
RGBrgb(136, 64, 224)
HSLhsl(267, 72%, 56%)
HSVhsv(267, 71%, 88%)
CMYKcmyk(39.3%, 71.4%, 0%, 12.2%)
CIE-LABlab(44.64, 60.86, -69.64)
CIE-LCHlch(44.64, 92.48, 311.15°)
OKLaboklab(54.99% 0.1113 -0.1989)
OKLCHoklch(54.99% 0.228 299.2)
XYZxyz(25.4379, 14.2825, 71.9232)
Luminance0.1428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8840E0 #98E040
analogous
#4048E0 #8840E0 #D840E0
triadic
#8840E0 #E08840 #40E088
tetradic
#8840E0 #E04048 #98E040 #40E0D8
square
#8840E0 #E04048 #98E040 #40E0D8
split-complementary
#8840E0 #E0D840 #48E040
monochromatic
#4D178E #6920C3 #8840E0 #A975E9 #CAA9F1

Accessibility & contrast

On white

5.45
#8840E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8840E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8840E0
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8840E0#FFFFFF#000000##FFFFFF
##8840E01.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E5
Deuteranopia (green-blind)
#0068DD
Tritanopia (blue-blind)
#73688C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8840e0;
/* rgb */ color: rgb(136, 64, 224);
/* oklch */ color: oklch(55.0% 0.228 299.2);
Tailwind
colors: {
  custom: {
    50: '#b27beb',
    500: '#8840e0',
    950: '#000000',
  },
}
SCSS
$custom: #8840e0;
$custom-light: #b27beb;
$custom-dark: #000000;
JSON
{
  "hex": "#8840e0",
  "rgb": {
    "r": 136,
    "g": 64,
    "b": 224
  },
  "hsl": {
    "h": 267,
    "s": 72.072,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54987,
    "c": 0.22787,
    "h": 299.2
  },
  "luminance": 0.14283
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8840E0

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

Preview Lab → · Contrast checker → · Palette generator →

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