#8240D9#8240D9

#8240D9 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.8% C 0.220 H 298.3°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8240D9
RGBrgb(130, 64, 217)
HSLhsl(266, 67%, 55%)
HSVhsv(266, 71%, 85%)
CMYKcmyk(40.1%, 70.5%, 0%, 14.9%)
CIE-LABlab(43.39, 58.09, -67.70)
CIE-LCHlch(43.39, 89.20, 310.63°)
OKLaboklab(53.78% 0.1043 -0.1934)
OKLCHoklch(53.78% 0.22 298.3)
XYZxyz(23.5605, 13.4220, 66.9816)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8240D9 #97D940
analogous
#404BD9 #8240D9 #CE40D9
triadic
#8240D9 #D98240 #40D982
tetradic
#8240D9 #D9404B #97D940 #40D9CE
square
#8240D9 #D9404B #97D940 #40D9CE
split-complementary
#8240D9 #D9CE40 #4BD940
monochromatic
#481A84 #6424B7 #8240D9 #A373E3 #C5A6ED

Accessibility & contrast

On white

5.70
#8240D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8240D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8240D9
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8240D9#FFFFFF#000000##FFFFFF
##8240D91.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DD
Deuteranopia (green-blind)
#0065D6
Tritanopia (blue-blind)
#6D6688
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8240d9;
/* rgb */ color: rgb(130, 64, 217);
/* oklch */ color: oklch(53.8% 0.220 298.3);
Tailwind
colors: {
  custom: {
    50: '#ad7ae6',
    500: '#8240d9',
    950: '#000000',
  },
}
SCSS
$custom: #8240d9;
$custom-light: #ad7ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#8240d9",
  "rgb": {
    "r": 130,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 265.882,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53781,
    "c": 0.21969,
    "h": 298.3
  },
  "luminance": 0.13422
}

Semantic roles & 50–950 ramp

primary
#8240D9
secondary
#BFDA9A
accent
#EA3EA0
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8240D9

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

Preview Lab → · Contrast checker → · Palette generator →

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