#8740DF#8740DF

#8740DF is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.8% C 0.227 H 299.1°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8740DF
RGBrgb(135, 64, 223)
HSLhsl(267, 71%, 56%)
HSVhsv(267, 71%, 87%)
CMYKcmyk(39.5%, 71.3%, 0%, 12.5%)
CIE-LABlab(44.44, 60.44, -69.39)
CIE-LCHlch(44.44, 92.02, 311.06°)
OKLaboklab(54.8% 0.1101 -0.1982)
OKLCHoklch(54.8% 0.227 299.1)
XYZxyz(25.1410, 14.1451, 71.2034)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740DF #98DF40
analogous
#4049DF #8740DF #D640DF
triadic
#8740DF #DF8740 #40DF87
tetradic
#8740DF #DF4049 #98DF40 #40DFD6
square
#8740DF #DF4049 #98DF40 #40DFD6
split-complementary
#8740DF #DFD640 #49DF40
monochromatic
#4C188D #6820C1 #8740DF #A874E8 #C9A9F1

Accessibility & contrast

On white

5.48
#8740DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8740DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740DF
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740DF#FFFFFF#000000##FFFFFF
##8740DF1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E4
Deuteranopia (green-blind)
#0068DC
Tritanopia (blue-blind)
#72688C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8740df;
/* rgb */ color: rgb(135, 64, 223);
/* oklch */ color: oklch(54.8% 0.227 299.1);
Tailwind
colors: {
  custom: {
    50: '#b17bea',
    500: '#8740df',
    950: '#000000',
  },
}
SCSS
$custom: #8740df;
$custom-light: #b17bea;
$custom-dark: #000000;
JSON
{
  "hex": "#8740df",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 266.792,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54799,
    "c": 0.22669,
    "h": 299.1
  },
  "luminance": 0.14145
}

Semantic roles & 50–950 ramp

primary
#8740DF
secondary
#C1DE9D
accent
#EE3A9E
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8740DF

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

Preview Lab → · Contrast checker → · Palette generator →

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