#7840D3#7840D3

#7840D3 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.212 H 295.5°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7840D3
RGBrgb(120, 64, 211)
HSLhsl(263, 63%, 54%)
HSVhsv(263, 70%, 83%)
CMYKcmyk(43.1%, 69.7%, 0%, 17.3%)
CIE-LABlab(41.79, 54.78, -66.92)
CIE-LCHlch(41.79, 86.48, 309.31°)
OKLaboklab(52.24% 0.0914 -0.1914)
OKLCHoklch(52.24% 0.212 295.5)
XYZxyz(21.3339, 12.3625, 62.8776)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7840D3 #9BD340
analogous
#4052D3 #7840D3 #C240D3
triadic
#7840D3 #D37840 #40D378
tetradic
#7840D3 #D34052 #9BD340 #40D3C2
square
#7840D3 #D34052 #9BD340 #40D3C2
split-complementary
#7840D3 #D3C240 #52D340
monochromatic
#411D7C #5B28AE #7840D3 #9B72DE #BEA3EA

Accessibility & contrast

On white

6.05
#7840D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7840D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7840D3
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7840D3#FFFFFF#000000##FFFFFF
##7840D31.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D7
Deuteranopia (green-blind)
#0060D0
Tritanopia (blue-blind)
#5F6585
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7840d3;
/* rgb */ color: rgb(120, 64, 211);
/* oklch */ color: oklch(52.2% 0.212 295.5);
Tailwind
colors: {
  custom: {
    50: '#a679e2',
    500: '#7840d3',
    950: '#000000',
  },
}
SCSS
$custom: #7840d3;
$custom-light: #a679e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7840d3",
  "rgb": {
    "r": 120,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 262.857,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52237,
    "c": 0.21213,
    "h": 295.5
  },
  "luminance": 0.12363
}

Semantic roles & 50–950 ramp

primary
#7840D3
secondary
#BFD798
accent
#E642A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7840D3

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

Preview Lab → · Contrast checker → · Palette generator →

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