#8740A2#8740A2

#8740A2 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.5% C 0.162 H 315.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#8740A2
RGBrgb(135, 64, 162)
HSLhsl(283, 43%, 44%)
HSVhsv(283, 60%, 64%)
CMYKcmyk(16.7%, 60.5%, 0%, 36.5%)
CIE-LABlab(40.29, 46.33, -40.49)
CIE-LCHlch(40.29, 61.53, 318.85°)
OKLaboklab(50.51% 0.1159 -0.1133)
OKLCHoklch(50.51% 0.162 315.6)
XYZxyz(18.3456, 11.4269, 35.4146)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740A2 #5BA240
analogous
#5640A2 #8740A2 #A2408C
triadic
#8740A2 #A28740 #40A287
tetradic
#8740A2 #A25640 #5BA240 #408CA2
square
#8740A2 #A25640 #5BA240 #408CA2
split-complementary
#8740A2 #8CA240 #40A256
monochromatic
#3E1D4A #622F76 #8740A2 #A55FC0 #BE8BD1

Accessibility & contrast

On white

6.39
#8740A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8740A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740A2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740A2#FFFFFF#000000##FFFFFF
##8740A21.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235BA5
Deuteranopia (green-blind)
#4061A0
Tritanopia (blue-blind)
#85516B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8740a2;
/* rgb */ color: rgb(135, 64, 162);
/* oklch */ color: oklch(50.5% 0.162 315.6);
Tailwind
colors: {
  custom: {
    50: '#ad79be',
    500: '#8740a2',
    950: '#000000',
  },
}
SCSS
$custom: #8740a2;
$custom-light: #ad79be;
$custom-dark: #000000;
JSON
{
  "hex": "#8740a2",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 283.469,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50505,
    "c": 0.16209,
    "h": 315.6
  },
  "luminance": 0.11426
}

Semantic roles & 50–950 ramp

primary
#8740A2
secondary
#92BC82
accent
#D35578
background
#FAF7FB
surface
#F5EEF7
border
#CFC9D0
text
#100912
muted
#7F7B81

Preview Lab

Preview with #8740A2

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

Preview Lab → · Contrast checker → · Palette generator →

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