#8740D3#8740D3

#8740D3 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 53.9% C 0.214 H 301.6°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8740D3
RGBrgb(135, 64, 211)
HSLhsl(269, 63%, 54%)
HSVhsv(269, 70%, 83%)
CMYKcmyk(36%, 69.7%, 0%, 17.3%)
CIE-LABlab(43.54, 57.55, -63.99)
CIE-LCHlch(43.54, 86.06, 311.97°)
OKLaboklab(53.87% 0.1122 -0.1823)
OKLCHoklch(53.87% 0.214 301.6)
XYZxyz(23.5801, 13.5207, 62.9829)
Luminance0.1352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740D3 #8CD340
analogous
#4043D3 #8740D3 #D140D3
triadic
#8740D3 #D38740 #40D387
tetradic
#8740D3 #D34043 #8CD340 #40D3D1
square
#8740D3 #D34043 #8CD340 #40D3D1
split-complementary
#8740D3 #D3D140 #43D340
monochromatic
#4B1D7C #6928AE #8740D3 #A672DE #C6A3EA

Accessibility & contrast

On white

5.67
#8740D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8740D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740D3
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740D3#FFFFFF#000000##FFFFFF
##8740D31.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0066D0
Tritanopia (blue-blind)
#776385
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8740d3;
/* rgb */ color: rgb(135, 64, 211);
/* oklch */ color: oklch(53.9% 0.214 301.6);
Tailwind
colors: {
  custom: {
    50: '#b07ae1',
    500: '#8740d3',
    950: '#000000',
  },
}
SCSS
$custom: #8740d3;
$custom-light: #b07ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#8740d3",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 268.98,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53875,
    "c": 0.21406,
    "h": 301.6
  },
  "luminance": 0.13521
}

Semantic roles & 50–950 ramp

primary
#8740D3
secondary
#B8D798
accent
#E64297
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8740D3

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

Preview Lab → · Contrast checker → · Palette generator →

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