#7839C4#7839C4

#7839C4 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.2% C 0.204 H 299.7°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7839C4
RGBrgb(120, 57, 196)
HSLhsl(267, 55%, 50%)
HSVhsv(267, 71%, 77%)
CMYKcmyk(38.8%, 70.9%, 0%, 23.1%)
CIE-LABlab(39.42, 54.35, -62.08)
CIE-LCHlch(39.42, 82.51, 311.20°)
OKLaboklab(50.19% 0.1009 -0.1772)
OKLCHoklch(50.19% 0.204 299.7)
XYZxyz(19.1702, 10.9046, 53.3087)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7839C4 #85C439
analogous
#3940C4 #7839C4 #BE39C4
triadic
#7839C4 #C47839 #39C478
tetradic
#7839C4 #C43940 #85C439 #39C4BE
square
#7839C4 #C43940 #85C439 #39C4BE
split-complementary
#7839C4 #C4BE39 #40C439
monochromatic
#3E1D65 #5B2B95 #7839C4 #9867D3 #B897E1

Accessibility & contrast

On white

6.60
#7839C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7839C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7839C4
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7839C4#FFFFFF#000000##FFFFFF
##7839C41.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC8
Deuteranopia (green-blind)
#005CC1
Tritanopia (blue-blind)
#665B7B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7839c4;
/* rgb */ color: rgb(120, 57, 196);
/* oklch */ color: oklch(50.2% 0.204 299.7);
Tailwind
colors: {
  custom: {
    50: '#a575d7',
    500: '#7839c4',
    950: '#000000',
  },
}
SCSS
$custom: #7839c4;
$custom-light: #a575d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7839c4",
  "rgb": {
    "r": 120,
    "g": 57,
    "b": 196
  },
  "hsl": {
    "h": 267.194,
    "s": 54.941,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50191,
    "c": 0.20388,
    "h": 299.7
  },
  "luminance": 0.10905
}

Semantic roles & 50–950 ramp

primary
#7839C4
secondary
#AFCC8D
accent
#DE4A9B
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7839C4

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

Preview Lab → · Contrast checker → · Palette generator →

#7839C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva