#8740C3#8740C3

#8740C3 is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.7% C 0.197 H 305.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8740C3
RGBrgb(135, 64, 195)
HSLhsl(273, 52%, 51%)
HSVhsv(273, 67%, 76%)
CMYKcmyk(30.8%, 67.2%, 0%, 23.5%)
CIE-LABlab(42.40, 53.76, -56.58)
CIE-LCHlch(42.40, 78.05, 313.53°)
OKLaboklab(52.7% 0.1144 -0.1605)
OKLCHoklch(52.7% 0.197 305.5)
XYZxyz(21.6732, 12.7580, 52.9399)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740C3 #7CC340
analogous
#4540C3 #8740C3 #C340BD
triadic
#8740C3 #C38740 #40C387
tetradic
#8740C3 #C34540 #7CC340 #40BDC3
square
#8740C3 #C34540 #7CC340 #40BDC3
split-complementary
#8740C3 #BDC340 #40C345
monochromatic
#472168 #672F97 #8740C3 #A46FD2 #C29DE0

Accessibility & contrast

On white

5.91
#8740C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8740C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740C3
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740C3#FFFFFF#000000##FFFFFF
##8740C31.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C7
Deuteranopia (green-blind)
#1764C0
Tritanopia (blue-blind)
#7C5D7C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8740c3;
/* rgb */ color: rgb(135, 64, 195);
/* oklch */ color: oklch(52.7% 0.197 305.5);
Tailwind
colors: {
  custom: {
    50: '#ae7ad6',
    500: '#8740c3',
    950: '#000000',
  },
}
SCSS
$custom: #8740c3;
$custom-light: #ae7ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#8740c3",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 272.519,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.527,
    "c": 0.1971,
    "h": 305.5
  },
  "luminance": 0.12758
}

Semantic roles & 50–950 ramp

primary
#8740C3
secondary
#ADCC92
accent
#DC4C8E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8740C3

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

Preview Lab → · Contrast checker → · Palette generator →

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