#8740CB#8740CB

#8740CB is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.3% C 0.206 H 303.5°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#8740CB
RGBrgb(135, 64, 203)
HSLhsl(271, 57%, 52%)
HSVhsv(271, 68%, 80%)
CMYKcmyk(33.5%, 68.5%, 0%, 20.4%)
CIE-LABlab(42.96, 55.64, -60.32)
CIE-LCHlch(42.96, 82.06, 312.69°)
OKLaboklab(53.28% 0.1134 -0.1715)
OKLCHoklch(53.28% 0.206 303.5)
XYZxyz(22.6021, 13.1295, 57.8318)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740CB #84CB40
analogous
#4140CB #8740CB #CB40CA
triadic
#8740CB #CB8740 #40CB87
tetradic
#8740CB #CB4140 #84CB40 #40CACB
square
#8740CB #CB4140 #84CB40 #40CACB
split-complementary
#8740CB #CACB40 #40CB41
monochromatic
#491F72 #682CA2 #8740CB #A570D8 #C3A0E5

Accessibility & contrast

On white

5.79
#8740CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#8740CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740CB
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740CB#FFFFFF#000000##FFFFFF
##8740CB1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CF
Deuteranopia (green-blind)
#0065C8
Tritanopia (blue-blind)
#7A6081
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8740cb;
/* rgb */ color: rgb(135, 64, 203);
/* oklch */ color: oklch(53.3% 0.206 303.5);
Tailwind
colors: {
  custom: {
    50: '#af7adc',
    500: '#8740cb',
    950: '#000000',
  },
}
SCSS
$custom: #8740cb;
$custom-light: #af7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#8740cb",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 270.647,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.53279,
    "c": 0.2056,
    "h": 303.5
  },
  "luminance": 0.13129
}

Semantic roles & 50–950 ramp

primary
#8740CB
secondary
#B3D295
accent
#E04792
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8740CB

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

Preview Lab → · Contrast checker → · Palette generator →

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