#7840CE#7840CE

#7840CE is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.207 H 296.5°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7840CE
RGBrgb(120, 64, 206)
HSLhsl(264, 59%, 53%)
HSVhsv(264, 69%, 81%)
CMYKcmyk(41.7%, 68.9%, 0%, 19.2%)
CIE-LABlab(41.40, 53.50, -64.66)
CIE-LCHlch(41.40, 83.92, 309.60°)
OKLaboklab(51.84% 0.0923 -0.1848)
OKLCHoklch(51.84% 0.207 296.5)
XYZxyz(20.7168, 12.1157, 59.6276)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7840CE #96CE40
analogous
#404FCE #7840CE #BF40CE
triadic
#7840CE #CE7840 #40CE78
tetradic
#7840CE #CE404F #96CE40 #40CEBF
square
#7840CE #CE404F #96CE40 #40CEBF
split-complementary
#7840CE #CEBF40 #4FCE40
monochromatic
#411E75 #5B2BA6 #7840CE #9A71DA #BDA1E7

Accessibility & contrast

On white

6.13
#7840CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7840CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7840CE
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7840CE#FFFFFF#000000##FFFFFF
##7840CE1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D2
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#626382
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7840ce;
/* rgb */ color: rgb(120, 64, 206);
/* oklch */ color: oklch(51.8% 0.207 296.5);
Tailwind
colors: {
  custom: {
    50: '#a679de',
    500: '#7840ce',
    950: '#000000',
  },
}
SCSS
$custom: #7840ce;
$custom-light: #a679de;
$custom-dark: #000000;
JSON
{
  "hex": "#7840ce",
  "rgb": {
    "r": 120,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 263.662,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.51841,
    "c": 0.20655,
    "h": 296.5
  },
  "luminance": 0.12116
}

Semantic roles & 50–950 ramp

primary
#7840CE
secondary
#BBD496
accent
#E245A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7840CE

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

Preview Lab → · Contrast checker → · Palette generator →

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