#8240B8#8240B8

#8240B8 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.184 H 306.2°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8240B8
RGBrgb(130, 64, 184)
HSLhsl(273, 48%, 49%)
HSVhsv(273, 65%, 72%)
CMYKcmyk(29.3%, 65.2%, 0%, 27.8%)
CIE-LABlab(41.01, 50.09, -52.41)
CIE-LCHlch(41.01, 72.50, 313.71°)
OKLaboklab(51.33% 0.1087 -0.1484)
OKLCHoklch(51.33% 0.184 306.2)
XYZxyz(19.6892, 11.8735, 46.5927)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240B8 #76B840
analogous
#4640B8 #8240B8 #B840B2
triadic
#8240B8 #B88240 #40B882
tetradic
#8240B8 #B84640 #76B840 #40B2B8
square
#8240B8 #B84640 #76B840 #40B2B8
split-complementary
#8240B8 #B2B840 #40B846
monochromatic
#42205D #62308B #8240B8 #9F6ACB #BD97DB

Accessibility & contrast

On white

6.22
#8240B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8240B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240B8
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240B8#FFFFFF#000000##FFFFFF
##8240B81.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#2361B5
Tritanopia (blue-blind)
#795976
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8240b8;
/* rgb */ color: rgb(130, 64, 184);
/* oklch */ color: oklch(51.3% 0.184 306.2);
Tailwind
colors: {
  custom: {
    50: '#aa79ce',
    500: '#8240b8',
    950: '#000000',
  },
}
SCSS
$custom: #8240b8;
$custom-light: #aa79ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8240b8",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 273,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.51331,
    "c": 0.18398,
    "h": 306.2
  },
  "luminance": 0.11873
}

Semantic roles & 50–950 ramp

primary
#8240B8
secondary
#A7C78D
accent
#D8508D
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #8240B8

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

Preview Lab → · Contrast checker → · Palette generator →

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