#8740B7#8740B7

#8740B7 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.9% C 0.184 H 308.8°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8740B7
RGBrgb(135, 64, 183)
HSLhsl(276, 48%, 48%)
HSVhsv(276, 65%, 72%)
CMYKcmyk(26.2%, 65%, 0%, 28.2%)
CIE-LABlab(41.59, 50.99, -50.86)
CIE-LCHlch(41.59, 72.02, 315.07°)
OKLaboklab(51.86% 0.1154 -0.1437)
OKLCHoklch(51.86% 0.184 308.8)
XYZxyz(20.3706, 12.2369, 46.0794)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740B7 #70B740
analogous
#4B40B7 #8740B7 #B740AB
triadic
#8740B7 #B78740 #40B787
tetradic
#8740B7 #B74B40 #70B740 #40ABB7
square
#8740B7 #B74B40 #70B740 #40ABB7
split-complementary
#8740B7 #ABB740 #40B74B
monochromatic
#44205C #66308A #8740B7 #A369CB #BF97DB

Accessibility & contrast

On white

6.09
#8740B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8740B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740B7
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740B7#FFFFFF#000000##FFFFFF
##8740B71.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#2C63B4
Tritanopia (blue-blind)
#805876
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8740b7;
/* rgb */ color: rgb(135, 64, 183);
/* oklch */ color: oklch(51.9% 0.184 308.8);
Tailwind
colors: {
  custom: {
    50: '#ae79cd',
    500: '#8740b7',
    950: '#000000',
  },
}
SCSS
$custom: #8740b7;
$custom-light: #ae79cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8740b7",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 275.798,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51864,
    "c": 0.18433,
    "h": 308.8
  },
  "luminance": 0.12237
}

Semantic roles & 50–950 ramp

primary
#8740B7
secondary
#A4C68D
accent
#D85087
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8740B7

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

Preview Lab → · Contrast checker → · Palette generator →

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