#8740C8#8740C8

#8740C8 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.1% C 0.202 H 304.2°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8740C8
RGBrgb(135, 64, 200)
HSLhsl(271, 55%, 52%)
HSVhsv(271, 68%, 78%)
CMYKcmyk(32.5%, 68%, 0%, 21.6%)
CIE-LABlab(42.74, 54.93, -58.92)
CIE-LCHlch(42.74, 80.56, 312.99°)
OKLaboklab(53.06% 0.1138 -0.1674)
OKLCHoklch(53.06% 0.202 304.2)
XYZxyz(22.2480, 12.9879, 55.9672)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740C8 #81C840
analogous
#4340C8 #8740C8 #C840C5
triadic
#8740C8 #C88740 #40C887
tetradic
#8740C8 #C84340 #81C840 #40C5C8
square
#8740C8 #C84340 #81C840 #40C5C8
split-complementary
#8740C8 #C5C840 #40C843
monochromatic
#49206E #682D9D #8740C8 #A570D6 #C39FE3

Accessibility & contrast

On white

5.84
#8740C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8740C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740C8
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740C8#FFFFFF#000000##FFFFFF
##8740C81.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#0565C5
Tritanopia (blue-blind)
#7B5F7F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8740c8;
/* rgb */ color: rgb(135, 64, 200);
/* oklch */ color: oklch(53.1% 0.202 304.2);
Tailwind
colors: {
  custom: {
    50: '#af7ada',
    500: '#8740c8',
    950: '#000000',
  },
}
SCSS
$custom: #8740c8;
$custom-light: #af7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#8740c8",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 271.324,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5306,
    "c": 0.20242,
    "h": 304.2
  },
  "luminance": 0.12988
}

Semantic roles & 50–950 ramp

primary
#8740C8
secondary
#B1D094
accent
#DF4991
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8740C8

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

Preview Lab → · Contrast checker → · Palette generator →

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