#7839D4#7839D4

#7839D4 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.5% C 0.221 H 296.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7839D4
RGBrgb(120, 57, 212)
HSLhsl(264, 64%, 53%)
HSVhsv(264, 73%, 83%)
CMYKcmyk(43.4%, 73.1%, 0%, 16.9%)
CIE-LABlab(40.69, 58.34, -69.28)
CIE-LCHlch(40.69, 90.58, 310.10°)
OKLaboklab(51.49% 0.0976 -0.1983)
OKLCHoklch(51.49% 0.221 296.2)
XYZxyz(21.0894, 11.6723, 63.4164)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7839D4 #95D439
analogous
#3948D4 #7839D4 #C539D4
triadic
#7839D4 #D47839 #39D478
tetradic
#7839D4 #D43948 #95D439 #39D4C5
square
#7839D4 #D43948 #95D439 #39D4C5
split-complementary
#7839D4 #D4C539 #48D439
monochromatic
#401A78 #5B25AB #7839D4 #9A6BDF #BD9EEA

Accessibility & contrast

On white

6.30
#7839D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7839D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7839D4
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7839D4#FFFFFF#000000##FFFFFF
##7839D41.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D8
Deuteranopia (green-blind)
#005ED1
Tritanopia (blue-blind)
#5F6184
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7839d4;
/* rgb */ color: rgb(120, 57, 212);
/* oklch */ color: oklch(51.5% 0.221 296.2);
Tailwind
colors: {
  custom: {
    50: '#a775e2',
    500: '#7839d4',
    950: '#000000',
  },
}
SCSS
$custom: #7839d4;
$custom-light: #a775e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7839d4",
  "rgb": {
    "r": 120,
    "g": 57,
    "b": 212
  },
  "hsl": {
    "h": 264.387,
    "s": 64.315,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51485,
    "c": 0.22105,
    "h": 296.2
  },
  "luminance": 0.11673
}

Semantic roles & 50–950 ramp

primary
#7839D4
secondary
#BBD693
accent
#E740A4
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7839D4

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

Preview Lab → · Contrast checker → · Palette generator →

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