#8840BF#8840BF

#8840BF is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.5% C 0.193 H 307.0°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#8840BF
RGBrgb(136, 64, 191)
HSLhsl(274, 50%, 50%)
HSVhsv(274, 66%, 75%)
CMYKcmyk(28.8%, 66.5%, 0%, 25.1%)
CIE-LABlab(42.25, 53.04, -54.48)
CIE-LCHlch(42.25, 76.04, 314.23°)
OKLaboklab(52.54% 0.1161 -0.1543)
OKLCHoklch(52.54% 0.193 307)
XYZxyz(21.3887, 12.6629, 50.5975)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8840BF #77BF40
analogous
#4940BF #8840BF #BF40B6
triadic
#8840BF #BF8840 #40BF88
tetradic
#8840BF #BF4940 #77BF40 #40B6BF
square
#8840BF #BF4940 #77BF40 #40B6BF
split-complementary
#8840BF #B6BF40 #40BF49
monochromatic
#472163 #673191 #8840BF #A56ECE #C19CDE

Accessibility & contrast

On white

5.94
#8840BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8840BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8840BF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8840BF#FFFFFF#000000##FFFFFF
##8840BF1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#2264BC
Tritanopia (blue-blind)
#7F5B7A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8840bf;
/* rgb */ color: rgb(136, 64, 191);
/* oklch */ color: oklch(52.5% 0.193 307.0);
Tailwind
colors: {
  custom: {
    50: '#af7ad3',
    500: '#8840bf',
    950: '#000000',
  },
}
SCSS
$custom: #8840bf;
$custom-light: #af7ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#8840bf",
  "rgb": {
    "r": 136,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 274.016,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.52536,
    "c": 0.19311,
    "h": 307
  },
  "luminance": 0.12663
}

Semantic roles & 50–950 ramp

primary
#8840BF
secondary
#AACA91
accent
#D94E8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8840BF

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

Preview Lab → · Contrast checker → · Palette generator →

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