#7839B5#7839B5

#7839B5 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.0% C 0.188 H 303.4°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7839B5
RGBrgb(120, 57, 181)
HSLhsl(270, 52%, 47%)
HSVhsv(270, 69%, 71%)
CMYKcmyk(33.7%, 68.5%, 0%, 29%)
CIE-LABlab(38.30, 50.67, -55.10)
CIE-LCHlch(38.30, 74.85, 312.60°)
OKLaboklab(49.04% 0.1033 -0.1566)
OKLCHoklch(49.04% 0.188 303.4)
XYZxyz(17.5474, 10.2555, 44.7622)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7839B5 #76B539
analogous
#3A39B5 #7839B5 #B539B4
triadic
#7839B5 #B57839 #39B578
tetradic
#7839B5 #B53A39 #76B539 #39B4B5
square
#7839B5 #B53A39 #76B539 #39B4B5
split-complementary
#7839B5 #B4B539 #39B53A
monochromatic
#3A1C58 #592A86 #7839B5 #965FCD #B58DDB

Accessibility & contrast

On white

6.88
#7839B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7839B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7839B5
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7839B5#FFFFFF#000000##FFFFFF
##7839B51.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B9
Deuteranopia (green-blind)
#005AB2
Tritanopia (blue-blind)
#6C5572
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7839b5;
/* rgb */ color: rgb(120, 57, 181);
/* oklch */ color: oklch(49.0% 0.188 303.4);
Tailwind
colors: {
  custom: {
    50: '#a474cc',
    500: '#7839b5',
    950: '#000000',
  },
}
SCSS
$custom: #7839b5;
$custom-light: #a474cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7839b5",
  "rgb": {
    "r": 120,
    "g": 57,
    "b": 181
  },
  "hsl": {
    "h": 270.484,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49038,
    "c": 0.1876,
    "h": 303.4
  },
  "luminance": 0.10256
}

Semantic roles & 50–950 ramp

primary
#7839B5
secondary
#A4C684
accent
#DC4C93
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7839B5

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

Preview Lab → · Contrast checker → · Palette generator →

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