#8240D1#8240D1

#8240D1 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.2% C 0.211 H 300.0°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8240D1
RGBrgb(130, 64, 209)
HSLhsl(267, 61%, 54%)
HSVhsv(267, 69%, 82%)
CMYKcmyk(37.8%, 69.4%, 0%, 18%)
CIE-LABlab(42.79, 56.12, -64.09)
CIE-LCHlch(42.79, 85.18, 311.21°)
OKLaboklab(53.16% 0.1057 -0.1827)
OKLCHoklch(53.16% 0.211 300)
XYZxyz(22.5451, 13.0159, 61.6338)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240D1 #8FD140
analogous
#4046D1 #8240D1 #CA40D1
triadic
#8240D1 #D18240 #40D182
tetradic
#8240D1 #D14046 #8FD140 #40D1CA
square
#8240D1 #D14046 #8FD140 #40D1CA
split-complementary
#8240D1 #D1CA40 #46D140
monochromatic
#471D79 #6429AB #8240D1 #A271DD #C3A3E9

Accessibility & contrast

On white

5.83
#8240D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8240D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240D1
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240D1#FFFFFF#000000##FFFFFF
##8240D11.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D5
Deuteranopia (green-blind)
#0064CE
Tritanopia (blue-blind)
#706384
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8240d1;
/* rgb */ color: rgb(130, 64, 209);
/* oklch */ color: oklch(53.2% 0.211 300.0);
Tailwind
colors: {
  custom: {
    50: '#ac7ae0',
    500: '#8240d1',
    950: '#000000',
  },
}
SCSS
$custom: #8240d1;
$custom-light: #ac7ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#8240d1",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 267.31,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53161,
    "c": 0.2111,
    "h": 300
  },
  "luminance": 0.13016
}

Semantic roles & 50–950 ramp

primary
#8240D1
secondary
#B9D597
accent
#E4449B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8240D1

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

Preview Lab → · Contrast checker → · Palette generator →

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