#8740C2#8740C2

#8740C2 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.196 H 305.7°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8740C2
RGBrgb(135, 64, 194)
HSLhsl(273, 52%, 51%)
HSVhsv(273, 67%, 76%)
CMYKcmyk(30.4%, 67%, 0%, 23.9%)
CIE-LABlab(42.33, 53.53, -56.11)
CIE-LCHlch(42.33, 77.55, 313.65°)
OKLaboklab(52.63% 0.1145 -0.1591)
OKLCHoklch(52.63% 0.196 305.7)
XYZxyz(21.5605, 12.7129, 52.3465)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740C2 #7BC240
analogous
#4640C2 #8740C2 #C240BC
triadic
#8740C2 #C28740 #40C287
tetradic
#8740C2 #C24640 #7BC240 #40BCC2
square
#8740C2 #C24640 #7BC240 #40BCC2
split-complementary
#8740C2 #BCC240 #40C246
monochromatic
#472167 #673095 #8740C2 #A46ED1 #C19DE0

Accessibility & contrast

On white

5.93
#8740C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8740C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740C2
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740C2#FFFFFF#000000##FFFFFF
##8740C21.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#1A64BF
Tritanopia (blue-blind)
#7D5D7C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8740c2;
/* rgb */ color: rgb(135, 64, 194);
/* oklch */ color: oklch(52.6% 0.196 305.7);
Tailwind
colors: {
  custom: {
    50: '#ae7ad5',
    500: '#8740c2',
    950: '#000000',
  },
}
SCSS
$custom: #8740c2;
$custom-light: #ae7ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#8740c2",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 272.769,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52629,
    "c": 0.19603,
    "h": 305.7
  },
  "luminance": 0.12713
}

Semantic roles & 50–950 ramp

primary
#8740C2
secondary
#ACCC92
accent
#DB4D8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8740C2

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

Preview Lab → · Contrast checker → · Palette generator →

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