#7840CF#7840CF

#7840CF is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.9% C 0.208 H 296.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7840CF
RGBrgb(120, 64, 207)
HSLhsl(263, 60%, 53%)
HSVhsv(263, 69%, 81%)
CMYKcmyk(42%, 69.1%, 0%, 18.8%)
CIE-LABlab(41.48, 53.75, -65.12)
CIE-LCHlch(41.48, 84.44, 309.54°)
OKLaboklab(51.92% 0.0921 -0.1861)
OKLCHoklch(51.92% 0.208 296.3)
XYZxyz(20.8386, 12.1644, 60.2694)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7840CF #97CF40
analogous
#404FCF #7840CF #C040CF
triadic
#7840CF #CF7840 #40CF78
tetradic
#7840CF #CF404F #97CF40 #40CFC0
square
#7840CF #CF404F #97CF40 #40CFC0
split-complementary
#7840CF #CFC040 #4FCF40
monochromatic
#411E77 #5B2AA8 #7840CF #9B71DB #BDA2E8

Accessibility & contrast

On white

6.12
#7840CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7840CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7840CF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7840CF#FFFFFF#000000##FFFFFF
##7840CF1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#616383
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7840cf;
/* rgb */ color: rgb(120, 64, 207);
/* oklch */ color: oklch(51.9% 0.208 296.3);
Tailwind
colors: {
  custom: {
    50: '#a679df',
    500: '#7840cf',
    950: '#000000',
  },
}
SCSS
$custom: #7840cf;
$custom-light: #a679df;
$custom-dark: #000000;
JSON
{
  "hex": "#7840cf",
  "rgb": {
    "r": 120,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 263.497,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5192,
    "c": 0.20767,
    "h": 296.3
  },
  "luminance": 0.12165
}

Semantic roles & 50–950 ramp

primary
#7840CF
secondary
#BCD497
accent
#E345A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7840CF

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

Preview Lab → · Contrast checker → · Palette generator →

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