#8740BC#8740BC

#8740BC is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.2% C 0.190 H 307.3°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8740BC
RGBrgb(135, 64, 188)
HSLhsl(274, 49%, 49%)
HSVhsv(274, 66%, 74%)
CMYKcmyk(28.2%, 66%, 0%, 26.3%)
CIE-LABlab(41.92, 52.13, -53.26)
CIE-LCHlch(41.92, 74.53, 314.39°)
OKLaboklab(52.21% 0.115 -0.1508)
OKLCHoklch(52.21% 0.19 307.3)
XYZxyz(20.9003, 12.4488, 48.8690)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740BC #75BC40
analogous
#4940BC #8740BC #BC40B3
triadic
#8740BC #BC8740 #40BC87
tetradic
#8740BC #BC4940 #75BC40 #40B3BC
square
#8740BC #BC4940 #75BC40 #40B3BC
split-complementary
#8740BC #B3BC40 #40BC49
monochromatic
#452161 #66308E #8740BC #A46CCD #C09ADD

Accessibility & contrast

On white

6.02
#8740BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8740BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740BC
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740BC#FFFFFF#000000##FFFFFF
##8740BC1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#2564B9
Tritanopia (blue-blind)
#7E5A78
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8740bc;
/* rgb */ color: rgb(135, 64, 188);
/* oklch */ color: oklch(52.2% 0.190 307.3);
Tailwind
colors: {
  custom: {
    50: '#ae7ad1',
    500: '#8740bc',
    950: '#000000',
  },
}
SCSS
$custom: #8740bc;
$custom-light: #ae7ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#8740bc",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 274.355,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52207,
    "c": 0.18965,
    "h": 307.3
  },
  "luminance": 0.12449
}

Semantic roles & 50–950 ramp

primary
#8740BC
secondary
#A8C98F
accent
#D94F8A
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8740BC

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

Preview Lab → · Contrast checker → · Palette generator →

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