#8740BF#8740BF

#8740BF is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.193 H 306.5°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#8740BF
RGBrgb(135, 64, 191)
HSLhsl(274, 50%, 50%)
HSVhsv(274, 66%, 75%)
CMYKcmyk(29.3%, 66.5%, 0%, 25.1%)
CIE-LABlab(42.12, 52.83, -54.69)
CIE-LCHlch(42.12, 76.04, 314.01°)
OKLaboklab(52.42% 0.1148 -0.155)
OKLCHoklch(52.42% 0.193 306.5)
XYZxyz(21.2270, 12.5795, 50.5899)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740BF #78BF40
analogous
#4740BF #8740BF #BF40B8
triadic
#8740BF #BF8740 #40BF87
tetradic
#8740BF #BF4740 #78BF40 #40B8BF
square
#8740BF #BF4740 #78BF40 #40B8BF
split-complementary
#8740BF #B8BF40 #40BF47
monochromatic
#462163 #673191 #8740BF #A46ECE #C19CDE

Accessibility & contrast

On white

5.97
#8740BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8740BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740BF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740BF#FFFFFF#000000##FFFFFF
##8740BF1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#2064BC
Tritanopia (blue-blind)
#7E5B7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8740bf;
/* rgb */ color: rgb(135, 64, 191);
/* oklch */ color: oklch(52.4% 0.193 306.5);
Tailwind
colors: {
  custom: {
    50: '#ae7ad3',
    500: '#8740bf',
    950: '#000000',
  },
}
SCSS
$custom: #8740bf;
$custom-light: #ae7ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#8740bf",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 273.543,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.52417,
    "c": 0.19284,
    "h": 306.5
  },
  "luminance": 0.12579
}

Semantic roles & 50–950 ramp

primary
#8740BF
secondary
#AACA91
accent
#D94E8C
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8740BF

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

Preview Lab → · Contrast checker → · Palette generator →

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