#8740C7#8740C7

#8740C7 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.0% C 0.201 H 304.4°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8740C7
RGBrgb(135, 64, 199)
HSLhsl(272, 55%, 52%)
HSVhsv(272, 68%, 78%)
CMYKcmyk(32.2%, 67.8%, 0%, 22%)
CIE-LABlab(42.67, 54.70, -58.46)
CIE-LCHlch(42.67, 80.06, 313.10°)
OKLaboklab(52.99% 0.1139 -0.166)
OKLCHoklch(52.99% 0.201 304.4)
XYZxyz(22.1315, 12.9413, 55.3537)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740C7 #80C740
analogous
#4440C7 #8740C7 #C740C3
triadic
#8740C7 #C78740 #40C787
tetradic
#8740C7 #C74440 #80C740 #40C3C7
square
#8740C7 #C74440 #80C740 #40C3C7
split-complementary
#8740C7 #C3C740 #40C744
monochromatic
#48206D #682E9C #8740C7 #A56FD5 #C29FE3

Accessibility & contrast

On white

5.85
#8740C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8740C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740C7
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740C7#FFFFFF#000000##FFFFFF
##8740C71.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0A65C4
Tritanopia (blue-blind)
#7B5E7E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8740c7;
/* rgb */ color: rgb(135, 64, 199);
/* oklch */ color: oklch(53.0% 0.201 304.4);
Tailwind
colors: {
  custom: {
    50: '#af7ad9',
    500: '#8740c7',
    950: '#000000',
  },
}
SCSS
$custom: #8740c7;
$custom-light: #af7ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#8740c7",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 271.556,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.52987,
    "c": 0.20135,
    "h": 304.4
  },
  "luminance": 0.12941
}

Semantic roles & 50–950 ramp

primary
#8740C7
secondary
#B0CF94
accent
#DE4A90
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8740C7

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

Preview Lab → · Contrast checker → · Palette generator →

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