#8840BC#8840BC

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

Color values

HEX#8840BC
RGBrgb(136, 64, 188)
HSLhsl(275, 49%, 49%)
HSVhsv(275, 66%, 74%)
CMYKcmyk(27.7%, 66%, 0%, 26.3%)
CIE-LABlab(42.05, 52.35, -53.05)
CIE-LCHlch(42.05, 74.53, 314.62°)
OKLaboklab(52.33% 0.1164 -0.1501)
OKLCHoklch(52.33% 0.19 307.8)
XYZxyz(21.0620, 12.5322, 48.8766)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8840BC #74BC40
analogous
#4A40BC #8840BC #BC40B2
triadic
#8840BC #BC8840 #40BC88
tetradic
#8840BC #BC4A40 #74BC40 #40B2BC
square
#8840BC #BC4A40 #74BC40 #40B2BC
split-complementary
#8840BC #B2BC40 #40BC4A
monochromatic
#462161 #67308E #8840BC #A46CCD #C19ADD

Accessibility & contrast

On white

5.99
#8840BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8840BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8840BC
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8840BC#FFFFFF#000000##FFFFFF
##8840BC1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C0
Deuteranopia (green-blind)
#2764B9
Tritanopia (blue-blind)
#805A78
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8840bc;
/* rgb */ color: rgb(136, 64, 188);
/* oklch */ color: oklch(52.3% 0.190 307.8);
Tailwind
colors: {
  custom: {
    50: '#af7ad1',
    500: '#8840bc',
    950: '#000000',
  },
}
SCSS
$custom: #8840bc;
$custom-light: #af7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#8840bc",
  "rgb": {
    "r": 136,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 274.839,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52328,
    "c": 0.18993,
    "h": 307.8
  },
  "luminance": 0.12532
}

Semantic roles & 50–950 ramp

primary
#8840BC
secondary
#A7C98F
accent
#D94F89
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8840BC

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

Preview Lab → · Contrast checker → · Palette generator →

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