#7840D9#7840D9

#7840D9 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.219 H 294.4°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7840D9
RGBrgb(120, 64, 217)
HSLhsl(262, 67%, 55%)
HSVhsv(262, 71%, 85%)
CMYKcmyk(44.7%, 70.5%, 0%, 14.9%)
CIE-LABlab(42.26, 56.34, -69.59)
CIE-LCHlch(42.26, 89.54, 308.99°)
OKLaboklab(52.72% 0.0903 -0.1993)
OKLCHoklch(52.72% 0.219 294.4)
XYZxyz(22.1001, 12.6690, 66.9131)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7840D9 #A1D940
analogous
#4054D9 #7840D9 #C540D9
triadic
#7840D9 #D97840 #40D978
tetradic
#7840D9 #D94054 #A1D940 #40D9C5
square
#7840D9 #D94054 #A1D940 #40D9C5
split-complementary
#7840D9 #D9C540 #54D940
monochromatic
#411A84 #5A24B7 #7840D9 #9C73E3 #C0A6ED

Accessibility & contrast

On white

5.94
#7840D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7840D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7840D9
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7840D9#FFFFFF#000000##FFFFFF
##7840D91.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DE
Deuteranopia (green-blind)
#0061D6
Tritanopia (blue-blind)
#5C6788
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7840d9;
/* rgb */ color: rgb(120, 64, 217);
/* oklch */ color: oklch(52.7% 0.219 294.4);
Tailwind
colors: {
  custom: {
    50: '#a779e6',
    500: '#7840d9',
    950: '#000000',
  },
}
SCSS
$custom: #7840d9;
$custom-light: #a779e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7840d9",
  "rgb": {
    "r": 120,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 261.961,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.52722,
    "c": 0.21877,
    "h": 294.4
  },
  "luminance": 0.1267
}

Semantic roles & 50–950 ramp

primary
#7840D9
secondary
#C3DA9A
accent
#EA3EAB
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7840D9

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

Preview Lab → · Contrast checker → · Palette generator →

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