#8740BD#8740BD

#8740BD is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.191 H 307.1°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#8740BD
RGBrgb(135, 64, 189)
HSLhsl(274, 49%, 50%)
HSVhsv(274, 66%, 74%)
CMYKcmyk(28.6%, 66.1%, 0%, 25.9%)
CIE-LABlab(41.99, 52.36, -53.74)
CIE-LCHlch(41.99, 75.03, 314.26°)
OKLaboklab(52.28% 0.115 -0.1522)
OKLCHoklch(52.28% 0.191 307.1)
XYZxyz(21.0084, 12.4921, 49.4387)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740BD #76BD40
analogous
#4940BD #8740BD #BD40B5
triadic
#8740BD #BD8740 #40BD87
tetradic
#8740BD #BD4940 #76BD40 #40B5BD
square
#8740BD #BD4940 #76BD40 #40B5BD
split-complementary
#8740BD #B5BD40 #40BD49
monochromatic
#462162 #66318F #8740BD #A46DCD #C09ADD

Accessibility & contrast

On white

6.00
#8740BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8740BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740BD
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740BD#FFFFFF#000000##FFFFFF
##8740BD1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#2364BA
Tritanopia (blue-blind)
#7E5B79
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8740bd;
/* rgb */ color: rgb(135, 64, 189);
/* oklch */ color: oklch(52.3% 0.191 307.1);
Tailwind
colors: {
  custom: {
    50: '#ae7ad2',
    500: '#8740bd',
    950: '#000000',
  },
}
SCSS
$custom: #8740bd;
$custom-light: #ae7ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8740bd",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 274.08,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52277,
    "c": 0.19072,
    "h": 307.1
  },
  "luminance": 0.12492
}

Semantic roles & 50–950 ramp

primary
#8740BD
secondary
#A9C990
accent
#D94F8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8740BD

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

Preview Lab → · Contrast checker → · Palette generator →

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