#8840BA#8840BA

#8840BA is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.2% C 0.188 H 308.3°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8840BA
RGBrgb(136, 64, 186)
HSLhsl(275, 49%, 49%)
HSVhsv(275, 66%, 73%)
CMYKcmyk(26.9%, 65.6%, 0%, 27.1%)
CIE-LABlab(41.92, 51.90, -52.09)
CIE-LCHlch(41.92, 73.53, 314.89°)
OKLaboklab(52.19% 0.1165 -0.1473)
OKLCHoklch(52.19% 0.188 308.3)
XYZxyz(20.8479, 12.4465, 47.7490)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8840BA #72BA40
analogous
#4B40BA #8840BA #BA40AF
triadic
#8840BA #BA8840 #40BA88
tetradic
#8840BA #BA4B40 #72BA40 #40AFBA
square
#8840BA #BA4B40 #72BA40 #40AFBA
split-complementary
#8840BA #AFBA40 #40BA4B
monochromatic
#45215F #67308C #8840BA #A46BCC #C099DC

Accessibility & contrast

On white

6.02
#8840BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8840BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8840BA
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8840BA#FFFFFF#000000##FFFFFF
##8840BA1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#2964B7
Tritanopia (blue-blind)
#805977
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8840ba;
/* rgb */ color: rgb(136, 64, 186);
/* oklch */ color: oklch(52.2% 0.188 308.3);
Tailwind
colors: {
  custom: {
    50: '#af7acf',
    500: '#8840ba',
    950: '#000000',
  },
}
SCSS
$custom: #8840ba;
$custom-light: #af7acf;
$custom-dark: #000000;
JSON
{
  "hex": "#8840ba",
  "rgb": {
    "r": 136,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 275.41,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5219,
    "c": 0.18782,
    "h": 308.3
  },
  "luminance": 0.12446
}

Semantic roles & 50–950 ramp

primary
#8840BA
secondary
#A6C88E
accent
#D84F88
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8840BA

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

Preview Lab → · Contrast checker → · Palette generator →

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