#8740BB#8740BB

#8740BB is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.1% C 0.189 H 307.6°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8740BB
RGBrgb(135, 64, 187)
HSLhsl(275, 49%, 49%)
HSVhsv(275, 66%, 73%)
CMYKcmyk(27.8%, 65.8%, 0%, 26.7%)
CIE-LABlab(41.85, 51.90, -52.79)
CIE-LCHlch(41.85, 74.03, 314.52°)
OKLaboklab(52.14% 0.1151 -0.1494)
OKLCHoklch(52.14% 0.189 307.6)
XYZxyz(20.7928, 12.4058, 48.3033)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740BB #74BB40
analogous
#4A40BB #8740BB #BB40B2
triadic
#8740BB #BB8740 #40BB87
tetradic
#8740BB #BB4A40 #74BB40 #40B2BB
square
#8740BB #BB4A40 #74BB40 #40B2BB
split-complementary
#8740BB #B2BB40 #40BB4A
monochromatic
#452160 #66308D #8740BB #A46CCD #C099DC

Accessibility & contrast

On white

6.03
#8740BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8740BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740BB
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740BB#FFFFFF#000000##FFFFFF
##8740BB1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#2763B8
Tritanopia (blue-blind)
#7F5A78
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8740bb;
/* rgb */ color: rgb(135, 64, 187);
/* oklch */ color: oklch(52.1% 0.189 307.6);
Tailwind
colors: {
  custom: {
    50: '#ae7ad0',
    500: '#8740bb',
    950: '#000000',
  },
}
SCSS
$custom: #8740bb;
$custom-light: #ae7ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#8740bb",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 274.634,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52138,
    "c": 0.18859,
    "h": 307.6
  },
  "luminance": 0.12406
}

Semantic roles & 50–950 ramp

primary
#8740BB
secondary
#A7C88F
accent
#D94F89
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8740BB

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

Preview Lab → · Contrast checker → · Palette generator →

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