#8840BB#8840BB

#8840BB is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.189 H 308.1°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#8840BB
RGBrgb(136, 64, 187)
HSLhsl(275, 49%, 49%)
HSVhsv(275, 66%, 73%)
CMYKcmyk(27.3%, 65.8%, 0%, 26.7%)
CIE-LABlab(41.98, 52.12, -52.57)
CIE-LCHlch(41.98, 74.03, 314.76°)
OKLaboklab(52.26% 0.1165 -0.1487)
OKLCHoklch(52.26% 0.189 308.1)
XYZxyz(20.9545, 12.4892, 48.3108)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8840BB #73BB40
analogous
#4B40BB #8840BB #BB40B1
triadic
#8840BB #BB8840 #40BB88
tetradic
#8840BB #BB4B40 #73BB40 #40B1BB
square
#8840BB #BB4B40 #73BB40 #40B1BB
split-complementary
#8840BB #B1BB40 #40BB4B
monochromatic
#462160 #67308D #8840BB #A46CCD #C099DC

Accessibility & contrast

On white

6.00
#8840BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8840BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8840BB
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8840BB#FFFFFF#000000##FFFFFF
##8840BB1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#2864B8
Tritanopia (blue-blind)
#805A78
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8840bb;
/* rgb */ color: rgb(136, 64, 187);
/* oklch */ color: oklch(52.3% 0.189 308.1);
Tailwind
colors: {
  custom: {
    50: '#af7ad0',
    500: '#8840bb',
    950: '#000000',
  },
}
SCSS
$custom: #8840bb;
$custom-light: #af7ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8840bb",
  "rgb": {
    "r": 136,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 275.122,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52259,
    "c": 0.18888,
    "h": 308.1
  },
  "luminance": 0.12489
}

Semantic roles & 50–950 ramp

primary
#8840BB
secondary
#A7C88F
accent
#D94F88
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8840BB

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

Preview Lab → · Contrast checker → · Palette generator →

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