#8840D1#8840D1

#8840D1 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.8% C 0.212 H 302.5°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8840D1
RGBrgb(136, 64, 209)
HSLhsl(270, 61%, 54%)
HSVhsv(270, 69%, 82%)
CMYKcmyk(34.9%, 69.4%, 0%, 18%)
CIE-LABlab(43.51, 57.26, -62.87)
CIE-LCHlch(43.51, 85.04, 312.33°)
OKLaboklab(53.84% 0.1139 -0.179)
OKLCHoklch(53.84% 0.212 302.5)
XYZxyz(23.4926, 13.5044, 61.6782)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8840D1 #89D140
analogous
#4040D1 #8840D1 #D040D1
triadic
#8840D1 #D18840 #40D188
tetradic
#8840D1 #D14040 #89D140 #40D1D0
square
#8840D1 #D14040 #89D140 #40D1D0
split-complementary
#8840D1 #D1D040 #40D140
monochromatic
#4B1D79 #6929AB #8840D1 #A771DD #C5A3E9

Accessibility & contrast

On white

5.67
#8840D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8840D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8840D1
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8840D1#FFFFFF#000000##FFFFFF
##8840D11.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D5
Deuteranopia (green-blind)
#0066CE
Tritanopia (blue-blind)
#796284
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8840d1;
/* rgb */ color: rgb(136, 64, 209);
/* oklch */ color: oklch(53.8% 0.212 302.5);
Tailwind
colors: {
  custom: {
    50: '#b07ae0',
    500: '#8840d1',
    950: '#000000',
  },
}
SCSS
$custom: #8840d1;
$custom-light: #b07ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#8840d1",
  "rgb": {
    "r": 136,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 269.793,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53839,
    "c": 0.21214,
    "h": 302.5
  },
  "luminance": 0.13504
}

Semantic roles & 50–950 ramp

primary
#8840D1
secondary
#B7D597
accent
#E44494
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8840D1

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

Preview Lab → · Contrast checker → · Palette generator →

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