#8240DF#8240DF

#8240DF is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.3% C 0.226 H 297.1°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#8240DF
RGBrgb(130, 64, 223)
HSLhsl(265, 71%, 56%)
HSVhsv(265, 71%, 87%)
CMYKcmyk(41.7%, 71.3%, 0%, 12.5%)
CIE-LABlab(43.86, 59.57, -70.36)
CIE-LCHlch(43.86, 92.20, 310.25°)
OKLaboklab(54.26% 0.1031 -0.2012)
OKLCHoklch(54.26% 0.226 297.1)
XYZxyz(24.3551, 13.7399, 71.1666)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240DF #9DDF40
analogous
#404EDF #8240DF #D240DF
triadic
#8240DF #DF8240 #40DF82
tetradic
#8240DF #DF404E #9DDF40 #40DFD2
square
#8240DF #DF404E #9DDF40 #40DFD2
split-complementary
#8240DF #DFD240 #4EDF40
monochromatic
#48188D #6320C1 #8240DF #A474E8 #C7A9F1

Accessibility & contrast

On white

5.60
#8240DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#8240DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240DF
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240DF#FFFFFF#000000##FFFFFF
##8240DF1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E4
Deuteranopia (green-blind)
#0066DC
Tritanopia (blue-blind)
#6A688C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8240df;
/* rgb */ color: rgb(130, 64, 223);
/* oklch */ color: oklch(54.3% 0.226 297.1);
Tailwind
colors: {
  custom: {
    50: '#ae7aea',
    500: '#8240df',
    950: '#000000',
  },
}
SCSS
$custom: #8240df;
$custom-light: #ae7aea;
$custom-dark: #000000;
JSON
{
  "hex": "#8240df",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 264.906,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54256,
    "c": 0.2261,
    "h": 297.1
  },
  "luminance": 0.1374
}

Semantic roles & 50–950 ramp

primary
#8240DF
secondary
#C3DE9D
accent
#EE3AA3
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8240DF

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

Preview Lab → · Contrast checker → · Palette generator →

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