#7840AE#7840AE

#7840AE is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.5% C 0.170 H 304.3°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7840AE
RGBrgb(120, 64, 174)
HSLhsl(271, 46%, 47%)
HSVhsv(271, 63%, 68%)
CMYKcmyk(31%, 63.2%, 0%, 31.8%)
CIE-LABlab(39.10, 45.42, -49.66)
CIE-LCHlch(39.10, 67.30, 312.45°)
OKLaboklab(49.46% 0.0959 -0.1407)
OKLCHoklch(49.46% 0.17 304.3)
XYZxyz(17.2174, 10.7159, 41.1975)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7840AE #76AE40
analogous
#4140AE #7840AE #AE40AD
triadic
#7840AE #AE7840 #40AE78
tetradic
#7840AE #AE4140 #76AE40 #40ADAE
square
#7840AE #AE4140 #76AE40 #40ADAE
split-complementary
#7840AE #ADAE40 #40AE41
monochromatic
#3A1F55 #593081 #7840AE #9665C6 #B592D7

Accessibility & contrast

On white

6.68
#7840AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7840AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7840AE
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7840AE#FFFFFF#000000##FFFFFF
##7840AE1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#235CAC
Tritanopia (blue-blind)
#6E5771
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7840ae;
/* rgb */ color: rgb(120, 64, 174);
/* oklch */ color: oklch(49.5% 0.170 304.3);
Tailwind
colors: {
  custom: {
    50: '#a378c7',
    500: '#7840ae',
    950: '#000000',
  },
}
SCSS
$custom: #7840ae;
$custom-light: #a378c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7840ae",
  "rgb": {
    "r": 120,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 270.545,
    "s": 46.218,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4946,
    "c": 0.17026,
    "h": 304.3
  },
  "luminance": 0.10716
}

Semantic roles & 50–950 ramp

primary
#7840AE
secondary
#A4C288
accent
#D65293
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7840AE

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

Preview Lab → · Contrast checker → · Palette generator →

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