#8240D0#8240D0

#8240D0 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.1% C 0.210 H 300.3°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8240D0
RGBrgb(130, 64, 208)
HSLhsl(268, 61%, 53%)
HSVhsv(268, 69%, 82%)
CMYKcmyk(37.5%, 69.2%, 0%, 18.4%)
CIE-LABlab(42.71, 55.87, -63.63)
CIE-LCHlch(42.71, 84.68, 311.29°)
OKLaboklab(53.09% 0.1058 -0.1814)
OKLCHoklch(53.09% 0.21 300.3)
XYZxyz(22.4217, 12.9665, 60.9838)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240D0 #8ED040
analogous
#4046D0 #8240D0 #CA40D0
triadic
#8240D0 #D08240 #40D082
tetradic
#8240D0 #D04046 #8ED040 #40D0CA
square
#8240D0 #D04046 #8ED040 #40D0CA
split-complementary
#8240D0 #D0CA40 #46D040
monochromatic
#471E78 #642AA9 #8240D0 #A271DC #C2A2E8

Accessibility & contrast

On white

5.84
#8240D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8240D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240D0
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240D0#FFFFFF#000000##FFFFFF
##8240D01.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D4
Deuteranopia (green-blind)
#0064CD
Tritanopia (blue-blind)
#706283
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8240d0;
/* rgb */ color: rgb(130, 64, 208);
/* oklch */ color: oklch(53.1% 0.210 300.3);
Tailwind
colors: {
  custom: {
    50: '#ac7adf',
    500: '#8240d0',
    950: '#000000',
  },
}
SCSS
$custom: #8240d0;
$custom-light: #ac7adf;
$custom-dark: #000000;
JSON
{
  "hex": "#8240d0",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 267.5,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53085,
    "c": 0.21002,
    "h": 300.3
  },
  "luminance": 0.12967
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8240D0

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

Preview Lab → · Contrast checker → · Palette generator →

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