#8740D4#8740D4

#8740D4 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.0% C 0.215 H 301.4°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8740D4
RGBrgb(135, 64, 212)
HSLhsl(269, 63%, 54%)
HSVhsv(269, 70%, 83%)
CMYKcmyk(36.3%, 69.8%, 0%, 16.9%)
CIE-LABlab(43.61, 57.79, -64.45)
CIE-LCHlch(43.61, 86.56, 311.88°)
OKLaboklab(53.95% 0.112 -0.1836)
OKLCHoklch(53.95% 0.215 301.4)
XYZxyz(23.7059, 13.5710, 63.6451)
Luminance0.1357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740D4 #8DD440
analogous
#4043D4 #8740D4 #D140D4
triadic
#8740D4 #D48740 #40D487
tetradic
#8740D4 #D44043 #8DD440 #40D4D1
square
#8740D4 #D44043 #8DD440 #40D4D1
split-complementary
#8740D4 #D4D140 #43D440
monochromatic
#4B1C7D #6927AF #8740D4 #A672DF #C6A4EA

Accessibility & contrast

On white

5.65
#8740D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8740D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740D4
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740D4#FFFFFF#000000##FFFFFF
##8740D41.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#0066D1
Tritanopia (blue-blind)
#766386
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8740d4;
/* rgb */ color: rgb(135, 64, 212);
/* oklch */ color: oklch(54.0% 0.215 301.4);
Tailwind
colors: {
  custom: {
    50: '#b07ae2',
    500: '#8740d4',
    950: '#000000',
  },
}
SCSS
$custom: #8740d4;
$custom-light: #b07ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#8740d4",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 268.784,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53951,
    "c": 0.21512,
    "h": 301.4
  },
  "luminance": 0.13571
}

Semantic roles & 50–950 ramp

primary
#8740D4
secondary
#B9D798
accent
#E64297
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8740D4

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

Preview Lab → · Contrast checker → · Palette generator →

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