#8740CE#8740CE

#8740CE is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.5% C 0.209 H 302.8°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8740CE
RGBrgb(135, 64, 206)
HSLhsl(270, 59%, 53%)
HSVhsv(270, 69%, 81%)
CMYKcmyk(34.5%, 68.9%, 0%, 19.2%)
CIE-LABlab(43.17, 56.35, -61.70)
CIE-LCHlch(43.17, 83.56, 312.41°)
OKLaboklab(53.5% 0.113 -0.1756)
OKLCHoklch(53.5% 0.209 302.8)
XYZxyz(22.9630, 13.2739, 59.7329)
Luminance0.1327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740CE #87CE40
analogous
#4040CE #8740CE #CE40CE
triadic
#8740CE #CE8740 #40CE87
tetradic
#8740CE #CE4040 #87CE40 #40CECE
square
#8740CE #CE4040 #87CE40 #40CECE
split-complementary
#8740CE #CECE40 #40CE40
monochromatic
#4A1E75 #682BA6 #8740CE #A671DA #C4A1E7

Accessibility & contrast

On white

5.75
#8740CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8740CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740CE
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740CE#FFFFFF#000000##FFFFFF
##8740CE1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D2
Deuteranopia (green-blind)
#0066CB
Tritanopia (blue-blind)
#796182
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8740ce;
/* rgb */ color: rgb(135, 64, 206);
/* oklch */ color: oklch(53.5% 0.209 302.8);
Tailwind
colors: {
  custom: {
    50: '#af7ade',
    500: '#8740ce',
    950: '#000000',
  },
}
SCSS
$custom: #8740ce;
$custom-light: #af7ade;
$custom-dark: #000000;
JSON
{
  "hex": "#8740ce",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 270,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53501,
    "c": 0.20877,
    "h": 302.8
  },
  "luminance": 0.13274
}

Semantic roles & 50–950 ramp

primary
#8740CE
secondary
#B5D496
accent
#E24594
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8740CE

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

Preview Lab → · Contrast checker → · Palette generator →

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