#8740BA#8740BA

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

Color values

HEX#8740BA
RGBrgb(135, 64, 186)
HSLhsl(275, 49%, 49%)
HSVhsv(275, 66%, 73%)
CMYKcmyk(27.4%, 65.6%, 0%, 27.1%)
CIE-LABlab(41.79, 51.67, -52.31)
CIE-LCHlch(41.79, 73.53, 314.65°)
OKLaboklab(52.07% 0.1152 -0.148)
OKLCHoklch(52.07% 0.188 307.9)
XYZxyz(20.6862, 12.3632, 47.7414)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740BA #73BA40
analogous
#4A40BA #8740BA #BA40B0
triadic
#8740BA #BA8740 #40BA87
tetradic
#8740BA #BA4A40 #73BA40 #40B0BA
square
#8740BA #BA4A40 #73BA40 #40B0BA
split-complementary
#8740BA #B0BA40 #40BA4A
monochromatic
#45215F #66308C #8740BA #A46BCC #C099DC

Accessibility & contrast

On white

6.05
#8740BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8740BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740BA
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740BA#FFFFFF#000000##FFFFFF
##8740BA1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#2863B7
Tritanopia (blue-blind)
#7F5A77
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8740ba;
/* rgb */ color: rgb(135, 64, 186);
/* oklch */ color: oklch(52.1% 0.188 307.9);
Tailwind
colors: {
  custom: {
    50: '#ae79cf',
    500: '#8740ba',
    950: '#000000',
  },
}
SCSS
$custom: #8740ba;
$custom-light: #ae79cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8740ba",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 274.918,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52069,
    "c": 0.18752,
    "h": 307.9
  },
  "luminance": 0.12363
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8740BA

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

Preview Lab → · Contrast checker → · Palette generator →

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