#8740D9#8740D9

#8740D9 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.3% C 0.220 H 300.3°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8740D9
RGBrgb(135, 64, 217)
HSLhsl(268, 67%, 55%)
HSVhsv(268, 71%, 85%)
CMYKcmyk(37.8%, 70.5%, 0%, 14.9%)
CIE-LABlab(43.98, 58.99, -66.71)
CIE-LCHlch(43.98, 89.05, 311.49°)
OKLaboklab(54.33% 0.1112 -0.1903)
OKLCHoklch(54.33% 0.22 300.3)
XYZxyz(24.3464, 13.8272, 67.0184)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740D9 #92D940
analogous
#4046D9 #8740D9 #D340D9
triadic
#8740D9 #D98740 #40D987
tetradic
#8740D9 #D94046 #92D940 #40D9D3
square
#8740D9 #D94046 #92D940 #40D9D3
split-complementary
#8740D9 #D9D340 #46D940
monochromatic
#4B1A84 #6924B7 #8740D9 #A773E3 #C7A6ED

Accessibility & contrast

On white

5.58
#8740D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8740D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740D9
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740D9#FFFFFF#000000##FFFFFF
##8740D91.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DD
Deuteranopia (green-blind)
#0067D6
Tritanopia (blue-blind)
#746588
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8740d9;
/* rgb */ color: rgb(135, 64, 217);
/* oklch */ color: oklch(54.3% 0.220 300.3);
Tailwind
colors: {
  custom: {
    50: '#b07be6',
    500: '#8740d9',
    950: '#000000',
  },
}
SCSS
$custom: #8740d9;
$custom-light: #b07be6;
$custom-dark: #000000;
JSON
{
  "hex": "#8740d9",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 267.843,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54333,
    "c": 0.22039,
    "h": 300.3
  },
  "luminance": 0.13827
}

Semantic roles & 50–950 ramp

primary
#8740D9
secondary
#BDDA9A
accent
#EA3E9A
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8740D9

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

Preview Lab → · Contrast checker → · Palette generator →

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