#8740BE#8740BE

#8740BE is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.192 H 306.8°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8740BE
RGBrgb(135, 64, 190)
HSLhsl(274, 50%, 50%)
HSVhsv(274, 66%, 75%)
CMYKcmyk(28.9%, 66.3%, 0%, 25.5%)
CIE-LABlab(42.05, 52.60, -54.22)
CIE-LCHlch(42.05, 75.54, 314.13°)
OKLaboklab(52.35% 0.1149 -0.1536)
OKLCHoklch(52.35% 0.192 306.8)
XYZxyz(21.1174, 12.5356, 50.0124)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8740BE #77BE40
analogous
#4840BE #8740BE #BE40B6
triadic
#8740BE #BE8740 #40BE87
tetradic
#8740BE #BE4840 #77BE40 #40B6BE
square
#8740BE #BE4840 #77BE40 #40B6BE
split-complementary
#8740BE #B6BE40 #40BE48
monochromatic
#462162 #663190 #8740BE #A46DCE #C09BDD

Accessibility & contrast

On white

5.99
#8740BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8740BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8740BE
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8740BE#FFFFFF#000000##FFFFFF
##8740BE1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C2
Deuteranopia (green-blind)
#2264BB
Tritanopia (blue-blind)
#7E5B7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8740be;
/* rgb */ color: rgb(135, 64, 190);
/* oklch */ color: oklch(52.3% 0.192 306.8);
Tailwind
colors: {
  custom: {
    50: '#ae7ad2',
    500: '#8740be',
    950: '#000000',
  },
}
SCSS
$custom: #8740be;
$custom-light: #ae7ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#8740be",
  "rgb": {
    "r": 135,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 273.81,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52347,
    "c": 0.19179,
    "h": 306.8
  },
  "luminance": 0.12535
}

Semantic roles & 50–950 ramp

primary
#8740BE
secondary
#A9C990
accent
#D94F8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8740BE

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

Preview Lab → · Contrast checker → · Palette generator →

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