#8740B2#8740B2

#8740B2 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.5% C 0.179 H 310.3°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8740B2
RGBrgb(135, 64, 178)
HSLhsl(277, 47%, 47%)
HSVhsv(277, 64%, 70%)
CMYKcmyk(24.2%, 64%, 0%, 30.2%)
CIE-LABlab(41.27, 49.85, -48.44)
CIE-LCHlch(41.27, 69.51, 315.83°)
OKLaboklab(51.53% 0.1157 -0.1366)
OKLCHoklch(51.53% 0.179 310.3)
XYZxyz(19.8594, 12.0324, 43.3872)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740B2 #6BB240
analogous
#4E40B2 #8740B2 #B240A4
triadic
#8740B2 #B28740 #40B287
tetradic
#8740B2 #B24E40 #6BB240 #40A4B2
square
#8740B2 #B24E40 #6BB240 #40A4B2
split-complementary
#8740B2 #A4B240 #40B24E
monochromatic
#432058 #653085 #8740B2 #A467C8 #BF94D8

Accessibility & contrast

On white

6.16
#8740B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8740B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740B2
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740B2#FFFFFF#000000##FFFFFF
##8740B21.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#3262AF
Tritanopia (blue-blind)
#815773
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8740b2;
/* rgb */ color: rgb(135, 64, 178);
/* oklch */ color: oklch(51.5% 0.179 310.3);
Tailwind
colors: {
  custom: {
    50: '#ad79ca',
    500: '#8740b2',
    950: '#000000',
  },
}
SCSS
$custom: #8740b2;
$custom-light: #ad79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8740b2",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 277.368,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51528,
    "c": 0.17901,
    "h": 310.3
  },
  "luminance": 0.12032
}

Semantic roles & 50–950 ramp

primary
#8740B2
secondary
#A0C48A
accent
#D75183
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8740B2

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

Preview Lab → · Contrast checker → · Palette generator →

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