#8840D2#8840D2

#8840D2 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.9% C 0.213 H 302.2°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8840D2
RGBrgb(136, 64, 210)
HSLhsl(270, 62%, 54%)
HSVhsv(270, 70%, 82%)
CMYKcmyk(35.2%, 69.5%, 0%, 17.6%)
CIE-LABlab(43.59, 57.50, -63.33)
CIE-LCHlch(43.59, 85.54, 312.24°)
OKLaboklab(53.91% 0.1137 -0.1803)
OKLCHoklch(53.91% 0.213 302.2)
XYZxyz(23.6168, 13.5541, 62.3323)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8840D2 #8AD240
analogous
#4041D2 #8840D2 #D140D2
triadic
#8840D2 #D28840 #40D288
tetradic
#8840D2 #D24041 #8AD240 #40D2D1
square
#8840D2 #D24041 #8AD240 #40D2D1
split-complementary
#8840D2 #D2D140 #41D240
monochromatic
#4B1D7B #6929AC #8840D2 #A772DE #C6A3E9

Accessibility & contrast

On white

5.66
#8840D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8840D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8840D2
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8840D2#FFFFFF#000000##FFFFFF
##8840D21.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#0066CF
Tritanopia (blue-blind)
#796384
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8840d2;
/* rgb */ color: rgb(136, 64, 210);
/* oklch */ color: oklch(53.9% 0.213 302.2);
Tailwind
colors: {
  custom: {
    50: '#b07ae1',
    500: '#8840d2',
    950: '#000000',
  },
}
SCSS
$custom: #8840d2;
$custom-light: #b07ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#8840d2",
  "rgb": {
    "r": 136,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 269.589,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53914,
    "c": 0.21319,
    "h": 302.2
  },
  "luminance": 0.13554
}

Semantic roles & 50–950 ramp

primary
#8840D2
secondary
#B7D698
accent
#E54395
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8840D2

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

Preview Lab → · Contrast checker → · Palette generator →

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