#8740D1#8740D1

#8740D1 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.7% C 0.212 H 302.1°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8740D1
RGBrgb(135, 64, 209)
HSLhsl(269, 61%, 54%)
HSVhsv(269, 69%, 82%)
CMYKcmyk(35.4%, 69.4%, 0%, 18%)
CIE-LABlab(43.39, 57.07, -63.08)
CIE-LCHlch(43.39, 85.06, 312.14°)
OKLaboklab(53.73% 0.1125 -0.1796)
OKLCHoklch(53.73% 0.212 302.1)
XYZxyz(23.3310, 13.4211, 61.6706)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740D1 #8AD140
analogous
#4041D1 #8740D1 #CF40D1
triadic
#8740D1 #D18740 #40D187
tetradic
#8740D1 #D14041 #8AD140 #40D1CF
square
#8740D1 #D14041 #8AD140 #40D1CF
split-complementary
#8740D1 #D1CF40 #41D140
monochromatic
#4A1D79 #6929AB #8740D1 #A671DD #C5A3E9

Accessibility & contrast

On white

5.70
#8740D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8740D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740D1
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740D1#FFFFFF#000000##FFFFFF
##8740D11.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D5
Deuteranopia (green-blind)
#0066CE
Tritanopia (blue-blind)
#786284
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8740d1;
/* rgb */ color: rgb(135, 64, 209);
/* oklch */ color: oklch(53.7% 0.212 302.1);
Tailwind
colors: {
  custom: {
    50: '#b07ae0',
    500: '#8740d1',
    950: '#000000',
  },
}
SCSS
$custom: #8740d1;
$custom-light: #b07ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#8740d1",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 269.379,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53725,
    "c": 0.21195,
    "h": 302.1
  },
  "luminance": 0.13421
}

Semantic roles & 50–950 ramp

primary
#8740D1
secondary
#B7D597
accent
#E44496
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8740D1

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

Preview Lab → · Contrast checker → · Palette generator →

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