#8840CB#8840CB

#8840CB is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.4% C 0.206 H 303.9°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8840CB
RGBrgb(136, 64, 203)
HSLhsl(271, 57%, 52%)
HSVhsv(271, 68%, 80%)
CMYKcmyk(33%, 68.5%, 0%, 20.4%)
CIE-LABlab(43.08, 55.84, -60.11)
CIE-LCHlch(43.08, 82.05, 312.89°)
OKLaboklab(53.4% 0.1147 -0.1709)
OKLCHoklch(53.4% 0.206 303.9)
XYZxyz(22.7638, 13.2129, 57.8394)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8840CB #83CB40
analogous
#4240CB #8840CB #CB40C9
triadic
#8840CB #CB8840 #40CB88
tetradic
#8840CB #CB4240 #83CB40 #40C9CB
square
#8840CB #CB4240 #83CB40 #40C9CB
split-complementary
#8840CB #C9CB40 #40CB42
monochromatic
#4A1F72 #692CA2 #8840CB #A670D8 #C4A0E5

Accessibility & contrast

On white

5.77
#8840CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8840CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8840CB
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8840CB#FFFFFF#000000##FFFFFF
##8840CB1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0066C8
Tritanopia (blue-blind)
#7B6081
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8840cb;
/* rgb */ color: rgb(136, 64, 203);
/* oklch */ color: oklch(53.4% 0.206 303.9);
Tailwind
colors: {
  custom: {
    50: '#b07adc',
    500: '#8840cb',
    950: '#000000',
  },
}
SCSS
$custom: #8840cb;
$custom-light: #b07adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8840cb",
  "rgb": {
    "r": 136,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 271.079,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53395,
    "c": 0.20581,
    "h": 303.9
  },
  "luminance": 0.13213
}

Semantic roles & 50–950 ramp

primary
#8840CB
secondary
#B2D295
accent
#E04791
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8840CB

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

Preview Lab → · Contrast checker → · Palette generator →

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