#7839D2#7839D2

#7839D2 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.3% C 0.219 H 296.6°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7839D2
RGBrgb(120, 57, 210)
HSLhsl(265, 63%, 52%)
HSVhsv(265, 73%, 82%)
CMYKcmyk(42.9%, 72.9%, 0%, 17.6%)
CIE-LABlab(40.53, 57.84, -68.39)
CIE-LCHlch(40.53, 89.57, 310.22°)
OKLaboklab(51.32% 0.0981 -0.1957)
OKLCHoklch(51.32% 0.219 296.6)
XYZxyz(20.8386, 11.5720, 62.0960)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7839D2 #93D239
analogous
#3946D2 #7839D2 #C539D2
triadic
#7839D2 #D27839 #39D278
tetradic
#7839D2 #D23946 #93D239 #39D2C5
square
#7839D2 #D23946 #93D239 #39D2C5
split-complementary
#7839D2 #D2C539 #46D239
monochromatic
#401B76 #5B26A8 #7839D2 #9A6BDD #BC9DE9

Accessibility & contrast

On white

6.34
#7839D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7839D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7839D2
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7839D2#FFFFFF#000000##FFFFFF
##7839D21.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#606182
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7839d2;
/* rgb */ color: rgb(120, 57, 210);
/* oklch */ color: oklch(51.3% 0.219 296.6);
Tailwind
colors: {
  custom: {
    50: '#a775e1',
    500: '#7839d2',
    950: '#000000',
  },
}
SCSS
$custom: #7839d2;
$custom-light: #a775e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7839d2",
  "rgb": {
    "r": 120,
    "g": 57,
    "b": 210
  },
  "hsl": {
    "h": 264.706,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.5132,
    "c": 0.21891,
    "h": 296.6
  },
  "luminance": 0.11572
}

Semantic roles & 50–950 ramp

primary
#7839D2
secondary
#B9D592
accent
#E642A2
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7839D2

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

Preview Lab → · Contrast checker → · Palette generator →

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