#8240BF#8240BF

#8240BF is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.192 H 304.3°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#8240BF
RGBrgb(130, 64, 191)
HSLhsl(271, 50%, 50%)
HSVhsv(271, 66%, 75%)
CMYKcmyk(31.9%, 66.5%, 0%, 25.1%)
CIE-LABlab(41.49, 51.76, -55.74)
CIE-LCHlch(41.49, 76.07, 312.88°)
OKLaboklab(51.83% 0.1081 -0.1582)
OKLCHoklch(51.83% 0.192 304.3)
XYZxyz(20.4412, 12.1743, 50.5531)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240BF #7DBF40
analogous
#4240BF #8240BF #BF40BD
triadic
#8240BF #BF8240 #40BF82
tetradic
#8240BF #BF4240 #7DBF40 #40BDBF
square
#8240BF #BF4240 #7DBF40 #40BDBF
split-complementary
#8240BF #BDBF40 #40BF42
monochromatic
#442163 #633191 #8240BF #A06ECE #BE9CDE

Accessibility & contrast

On white

6.11
#8240BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8240BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240BF
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240BF#FFFFFF#000000##FFFFFF
##8240BF1.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C3
Deuteranopia (green-blind)
#1562BC
Tritanopia (blue-blind)
#775C7A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8240bf;
/* rgb */ color: rgb(130, 64, 191);
/* oklch */ color: oklch(51.8% 0.192 304.3);
Tailwind
colors: {
  custom: {
    50: '#ab79d3',
    500: '#8240bf',
    950: '#000000',
  },
}
SCSS
$custom: #8240bf;
$custom-light: #ab79d3;
$custom-dark: #000000;
JSON
{
  "hex": "#8240bf",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 271.181,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.51826,
    "c": 0.19161,
    "h": 304.3
  },
  "luminance": 0.12174
}

Semantic roles & 50–950 ramp

primary
#8240BF
secondary
#ACCA91
accent
#D94E91
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8240BF

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

Preview Lab → · Contrast checker → · Palette generator →

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