#8240BD#8240BD

#8240BD is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.189 H 304.9°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8240BD
RGBrgb(130, 64, 189)
HSLhsl(272, 49%, 50%)
HSVhsv(272, 66%, 74%)
CMYKcmyk(31.2%, 66.1%, 0%, 25.9%)
CIE-LABlab(41.35, 51.28, -54.80)
CIE-LCHlch(41.35, 75.05, 313.10°)
OKLaboklab(51.68% 0.1083 -0.1554)
OKLCHoklch(51.68% 0.189 304.9)
XYZxyz(20.2226, 12.0869, 49.4019)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240BD #7BBD40
analogous
#4440BD #8240BD #BD40BA
triadic
#8240BD #BD8240 #40BD82
tetradic
#8240BD #BD4440 #7BBD40 #40BABD
square
#8240BD #BD4440 #7BBD40 #40BABD
split-complementary
#8240BD #BABD40 #40BD44
monochromatic
#432162 #63318F #8240BD #A06DCD #BE9ADD

Accessibility & contrast

On white

6.15
#8240BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#8240BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240BD
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240BD#FFFFFF#000000##FFFFFF
##8240BD1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#1A62BA
Tritanopia (blue-blind)
#775B79
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8240bd;
/* rgb */ color: rgb(130, 64, 189);
/* oklch */ color: oklch(51.7% 0.189 304.9);
Tailwind
colors: {
  custom: {
    50: '#ab79d2',
    500: '#8240bd',
    950: '#000000',
  },
}
SCSS
$custom: #8240bd;
$custom-light: #ab79d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8240bd",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 271.68,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51683,
    "c": 0.18943,
    "h": 304.9
  },
  "luminance": 0.12087
}

Semantic roles & 50–950 ramp

primary
#8240BD
secondary
#ABC990
accent
#D94F90
background
#FAF7FD
surface
#F5EEFA
border
#CFC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #8240BD

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

Preview Lab → · Contrast checker → · Palette generator →

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