#8240B2#8240B2

#8240B2 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.9% C 0.177 H 307.9°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8240B2
RGBrgb(130, 64, 178)
HSLhsl(275, 47%, 47%)
HSVhsv(275, 64%, 70%)
CMYKcmyk(27%, 64%, 0%, 30.2%)
CIE-LABlab(40.62, 48.69, -49.52)
CIE-LCHlch(40.62, 69.44, 314.52°)
OKLaboklab(50.92% 0.1091 -0.1399)
OKLCHoklch(50.92% 0.177 307.9)
XYZxyz(19.0736, 11.6272, 43.3503)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240B2 #70B240
analogous
#4940B2 #8240B2 #B240A9
triadic
#8240B2 #B28240 #40B282
tetradic
#8240B2 #B24940 #70B240 #40A9B2
square
#8240B2 #B24940 #70B240 #40A9B2
split-complementary
#8240B2 #A9B240 #40B249
monochromatic
#402058 #613085 #8240B2 #9F67C8 #BC94D8

Accessibility & contrast

On white

6.32
#8240B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8240B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240B2
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240B2#FFFFFF#000000##FFFFFF
##8240B21.006.323.336.32
#FFFFFF6.321.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#2B60AF
Tritanopia (blue-blind)
#7B5773
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8240b2;
/* rgb */ color: rgb(130, 64, 178);
/* oklch */ color: oklch(50.9% 0.177 307.9);
Tailwind
colors: {
  custom: {
    50: '#aa79ca',
    500: '#8240b2',
    950: '#000000',
  },
}
SCSS
$custom: #8240b2;
$custom-light: #aa79ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8240b2",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 274.737,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50918,
    "c": 0.17744,
    "h": 307.9
  },
  "luminance": 0.11627
}

Semantic roles & 50–950 ramp

primary
#8240B2
secondary
#A2C48A
accent
#D75189
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #8240B2

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

Preview Lab → · Contrast checker → · Palette generator →

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