#8740B9#8740B9

#8740B9 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.186 H 308.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8740B9
RGBrgb(135, 64, 185)
HSLhsl(275, 49%, 49%)
HSVhsv(275, 65%, 73%)
CMYKcmyk(27%, 65.4%, 0%, 27.5%)
CIE-LABlab(41.72, 51.44, -51.83)
CIE-LCHlch(41.72, 73.02, 314.79°)
OKLaboklab(52% 0.1153 -0.1466)
OKLCHoklch(52% 0.186 308.2)
XYZxyz(20.5802, 12.3208, 47.1835)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740B9 #72B940
analogous
#4B40B9 #8740B9 #B940AF
triadic
#8740B9 #B98740 #40B987
tetradic
#8740B9 #B94B40 #72B940 #40AFB9
square
#8740B9 #B94B40 #72B940 #40AFB9
split-complementary
#8740B9 #AFB940 #40B94B
monochromatic
#45215E #66308C #8740B9 #A46BCC #C098DB

Accessibility & contrast

On white

6.06
#8740B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8740B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740B9
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740B9#FFFFFF#000000##FFFFFF
##8740B91.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#2963B6
Tritanopia (blue-blind)
#7F5977
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8740b9;
/* rgb */ color: rgb(135, 64, 185);
/* oklch */ color: oklch(52.0% 0.186 308.2);
Tailwind
colors: {
  custom: {
    50: '#ae79cf',
    500: '#8740b9',
    950: '#000000',
  },
}
SCSS
$custom: #8740b9;
$custom-light: #ae79cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8740b9",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 275.207,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52,
    "c": 0.18646,
    "h": 308.2
  },
  "luminance": 0.1232
}

Semantic roles & 50–950 ramp

primary
#8740B9
secondary
#A5C78E
accent
#D85088
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8740B9

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

Preview Lab → · Contrast checker → · Palette generator →

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