#8740D8#8740D8

#8740D8 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.3% C 0.219 H 300.5°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#8740D8
RGBrgb(135, 64, 216)
HSLhsl(268, 66%, 55%)
HSVhsv(268, 70%, 85%)
CMYKcmyk(37.5%, 70.4%, 0%, 15.3%)
CIE-LABlab(43.91, 58.75, -66.26)
CIE-LCHlch(43.91, 88.55, 311.56°)
OKLaboklab(54.26% 0.1114 -0.189)
OKLCHoklch(54.26% 0.219 300.5)
XYZxyz(24.2167, 13.7754, 66.3355)
Luminance0.1378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740D8 #91D840
analogous
#4045D8 #8740D8 #D340D8
triadic
#8740D8 #D88740 #40D887
tetradic
#8740D8 #D84045 #91D840 #40D8D3
square
#8740D8 #D84045 #91D840 #40D8D3
split-complementary
#8740D8 #D8D340 #45D840
monochromatic
#4B1B83 #6925B6 #8740D8 #A773E2 #C7A6ED

Accessibility & contrast

On white

5.59
#8740D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8740D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740D8
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740D8#FFFFFF#000000##FFFFFF
##8740D81.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DC
Deuteranopia (green-blind)
#0067D5
Tritanopia (blue-blind)
#756588
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8740d8;
/* rgb */ color: rgb(135, 64, 216);
/* oklch */ color: oklch(54.3% 0.219 300.5);
Tailwind
colors: {
  custom: {
    50: '#b07ae5',
    500: '#8740d8',
    950: '#000000',
  },
}
SCSS
$custom: #8740d8;
$custom-light: #b07ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#8740d8",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 268.026,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54256,
    "c": 0.21933,
    "h": 300.5
  },
  "luminance": 0.13776
}

Semantic roles & 50–950 ramp

primary
#8740D8
secondary
#BCDA9A
accent
#E93F9A
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8740D8

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

Preview Lab → · Contrast checker → · Palette generator →

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