#8240B5#8240B5

#8240B5 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.181 H 307.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8240B5
RGBrgb(130, 64, 181)
HSLhsl(274, 48%, 48%)
HSVhsv(274, 65%, 71%)
CMYKcmyk(28.2%, 64.6%, 0%, 29%)
CIE-LABlab(40.81, 49.39, -50.97)
CIE-LCHlch(40.81, 70.97, 314.10°)
OKLaboklab(51.12% 0.1089 -0.1442)
OKLCHoklch(51.12% 0.181 307.1)
XYZxyz(19.3781, 11.7490, 44.9540)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240B5 #73B540
analogous
#4740B5 #8240B5 #B540AD
triadic
#8240B5 #B58240 #40B582
tetradic
#8240B5 #B54740 #73B540 #40ADB5
square
#8240B5 #B54740 #73B540 #40ADB5
split-complementary
#8240B5 #ADB540 #40B547
monochromatic
#41205B #623088 #8240B5 #9F68CA #BC96DA

Accessibility & contrast

On white

6.27
#8240B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8240B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240B5
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240B5#FFFFFF#000000##FFFFFF
##8240B51.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#2861B2
Tritanopia (blue-blind)
#7A5875
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8240b5;
/* rgb */ color: rgb(130, 64, 181);
/* oklch */ color: oklch(51.1% 0.181 307.1);
Tailwind
colors: {
  custom: {
    50: '#aa79cc',
    500: '#8240b5',
    950: '#000000',
  },
}
SCSS
$custom: #8240b5;
$custom-light: #aa79cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8240b5",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 273.846,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51123,
    "c": 0.18071,
    "h": 307.1
  },
  "luminance": 0.11749
}

Semantic roles & 50–950 ramp

primary
#8240B5
secondary
#A5C58B
accent
#D7508B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8240B5

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

Preview Lab → · Contrast checker → · Palette generator →

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