#8740AF#8740AF

#8740AF is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.176 H 311.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8740AF
RGBrgb(135, 64, 175)
HSLhsl(278, 46%, 47%)
HSVhsv(278, 63%, 69%)
CMYKcmyk(22.9%, 63.4%, 0%, 31.4%)
CIE-LABlab(41.08, 49.18, -46.97)
CIE-LCHlch(41.08, 68.00, 316.32°)
OKLaboklab(51.33% 0.1158 -0.1323)
OKLCHoklch(51.33% 0.176 311.2)
XYZxyz(19.5615, 11.9133, 41.8181)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740AF #68AF40
analogous
#4F40AF #8740AF #AF40A0
triadic
#8740AF #AF8740 #40AF87
tetradic
#8740AF #AF4F40 #68AF40 #40A0AF
square
#8740AF #AF4F40 #68AF40 #40A0AF
split-complementary
#8740AF #A0AF40 #40AF4F
monochromatic
#421F55 #643082 #8740AF #A465C7 #BE92D7

Accessibility & contrast

On white

6.21
#8740AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8740AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740AF
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740AF#FFFFFF#000000##FFFFFF
##8740AF1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5DB2
Deuteranopia (green-blind)
#3562AC
Tritanopia (blue-blind)
#825672
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8740af;
/* rgb */ color: rgb(135, 64, 175);
/* oklch */ color: oklch(51.3% 0.176 311.2);
Tailwind
colors: {
  custom: {
    50: '#ad79c7',
    500: '#8740af',
    950: '#000000',
  },
}
SCSS
$custom: #8740af;
$custom-light: #ad79c7;
$custom-dark: #000000;
JSON
{
  "hex": "#8740af",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 278.378,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5133,
    "c": 0.17583,
    "h": 311.2
  },
  "luminance": 0.11913
}

Semantic roles & 50–950 ramp

primary
#8740AF
secondary
#9DC388
accent
#D65281
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8740AF

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

Preview Lab → · Contrast checker → · Palette generator →

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