#7840CD#7840CD

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

Color values

HEX#7840CD
RGBrgb(120, 64, 205)
HSLhsl(264, 59%, 53%)
HSVhsv(264, 69%, 80%)
CMYKcmyk(41.5%, 68.8%, 0%, 19.6%)
CIE-LABlab(41.32, 53.24, -64.21)
CIE-LCHlch(41.32, 83.41, 309.66°)
OKLaboklab(51.76% 0.0925 -0.1835)
OKLCHoklch(51.76% 0.205 296.7)
XYZxyz(20.5957, 12.0672, 58.9899)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7840CD #95CD40
analogous
#404ECD #7840CD #BF40CD
triadic
#7840CD #CD7840 #40CD78
tetradic
#7840CD #CD404E #95CD40 #40CDBF
square
#7840CD #CD404E #95CD40 #40CDBF
split-complementary
#7840CD #CDBF40 #4ECD40
monochromatic
#401E74 #5B2BA5 #7840CD #9A71DA #BDA1E6

Accessibility & contrast

On white

6.15
#7840CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7840CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7840CD
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7840CD#FFFFFF#000000##FFFFFF
##7840CD1.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#626282
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7840cd;
/* rgb */ color: rgb(120, 64, 205);
/* oklch */ color: oklch(51.8% 0.205 296.7);
Tailwind
colors: {
  custom: {
    50: '#a679dd',
    500: '#7840cd',
    950: '#000000',
  },
}
SCSS
$custom: #7840cd;
$custom-light: #a679dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7840cd",
  "rgb": {
    "r": 120,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 263.83,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51762,
    "c": 0.20544,
    "h": 296.7
  },
  "luminance": 0.12068
}

Semantic roles & 50–950 ramp

primary
#7840CD
secondary
#BBD396
accent
#E246A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7840CD

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

Preview Lab → · Contrast checker → · Palette generator →

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