#7839C5#7839C5

#7839C5 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.3% C 0.205 H 299.4°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#7839C5
RGBrgb(120, 57, 197)
HSLhsl(267, 55%, 50%)
HSVhsv(267, 71%, 77%)
CMYKcmyk(39.1%, 71.1%, 0%, 22.7%)
CIE-LABlab(39.50, 54.60, -62.54)
CIE-LCHlch(39.50, 83.02, 311.12°)
OKLaboklab(50.27% 0.1007 -0.1785)
OKLCHoklch(50.27% 0.205 299.4)
XYZxyz(19.2844, 10.9503, 53.9101)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7839C5 #86C539
analogous
#3940C5 #7839C5 #BE39C5
triadic
#7839C5 #C57839 #39C578
tetradic
#7839C5 #C53940 #86C539 #39C5BE
square
#7839C5 #C53940 #86C539 #39C5BE
split-complementary
#7839C5 #C5BE39 #40C539
monochromatic
#3E1E66 #5B2B96 #7839C5 #9868D3 #B997E1

Accessibility & contrast

On white

6.58
#7839C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7839C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7839C5
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7839C5#FFFFFF#000000##FFFFFF
##7839C51.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7839c5;
/* rgb */ color: rgb(120, 57, 197);
/* oklch */ color: oklch(50.3% 0.205 299.4);
Tailwind
colors: {
  custom: {
    50: '#a575d8',
    500: '#7839c5',
    950: '#000000',
  },
}
SCSS
$custom: #7839c5;
$custom-light: #a575d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7839c5",
  "rgb": {
    "r": 120,
    "g": 57,
    "b": 197
  },
  "hsl": {
    "h": 267,
    "s": 55.118,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5027,
    "c": 0.20496,
    "h": 299.4
  },
  "luminance": 0.10951
}

Semantic roles & 50–950 ramp

primary
#7839C5
secondary
#B0CD8D
accent
#DE499B
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7839C5

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

Preview Lab → · Contrast checker → · Palette generator →

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