#8840D3#8840D3

#8840D3 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.0% C 0.214 H 302.0°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8840D3
RGBrgb(136, 64, 211)
HSLhsl(269, 63%, 54%)
HSVhsv(269, 70%, 83%)
CMYKcmyk(35.5%, 69.7%, 0%, 17.3%)
CIE-LABlab(43.66, 57.74, -63.79)
CIE-LCHlch(43.66, 86.04, 312.15°)
OKLaboklab(53.99% 0.1136 -0.1817)
OKLCHoklch(53.99% 0.214 302)
XYZxyz(23.7418, 13.6041, 62.9904)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8840D3 #8BD340
analogous
#4042D3 #8840D3 #D240D3
triadic
#8840D3 #D38840 #40D388
tetradic
#8840D3 #D34042 #8BD340 #40D3D2
square
#8840D3 #D34042 #8BD340 #40D3D2
split-complementary
#8840D3 #D3D240 #42D340
monochromatic
#4B1D7C #6A28AE #8840D3 #A772DE #C6A3EA

Accessibility & contrast

On white

5.64
#8840D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8840D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8840D3
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8840D3#FFFFFF#000000##FFFFFF
##8840D31.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0067D0
Tritanopia (blue-blind)
#786385
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8840d3;
/* rgb */ color: rgb(136, 64, 211);
/* oklch */ color: oklch(54.0% 0.214 302.0);
Tailwind
colors: {
  custom: {
    50: '#b07ae1',
    500: '#8840d3',
    950: '#000000',
  },
}
SCSS
$custom: #8840d3;
$custom-light: #b07ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#8840d3",
  "rgb": {
    "r": 136,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 269.388,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53989,
    "c": 0.21424,
    "h": 302
  },
  "luminance": 0.13604
}

Semantic roles & 50–950 ramp

primary
#8840D3
secondary
#B8D798
accent
#E64296
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8840D3

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

Preview Lab → · Contrast checker → · Palette generator →

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