#7839BA#7839BA

#7839BA is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.4% C 0.193 H 302.1°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#7839BA
RGBrgb(120, 57, 186)
HSLhsl(269, 53%, 48%)
HSVhsv(269, 69%, 73%)
CMYKcmyk(35.5%, 69.4%, 0%, 27.1%)
CIE-LABlab(38.66, 51.88, -57.45)
CIE-LCHlch(38.66, 77.41, 312.09°)
OKLaboklab(49.42% 0.1026 -0.1635)
OKLCHoklch(49.42% 0.193 302.1)
XYZxyz(18.0697, 10.4644, 47.5127)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7839BA #7BBA39
analogous
#393BBA #7839BA #B839BA
triadic
#7839BA #BA7839 #39BA78
tetradic
#7839BA #BA393B #7BBA39 #39BAB8
square
#7839BA #BA393B #7BBA39 #39BAB8
split-complementary
#7839BA #BAB839 #3BBA39
monochromatic
#3C1C5C #5A2B8B #7839BA #9761CF #B690DD

Accessibility & contrast

On white

6.79
#7839BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7839BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7839BA
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7839BA#FFFFFF#000000##FFFFFF
##7839BA1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#6A5775
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7839ba;
/* rgb */ color: rgb(120, 57, 186);
/* oklch */ color: oklch(49.4% 0.193 302.1);
Tailwind
colors: {
  custom: {
    50: '#a474d0',
    500: '#7839ba',
    950: '#000000',
  },
}
SCSS
$custom: #7839ba;
$custom-light: #a474d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7839ba",
  "rgb": {
    "r": 120,
    "g": 57,
    "b": 186
  },
  "hsl": {
    "h": 269.302,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49415,
    "c": 0.19305,
    "h": 302.1
  },
  "luminance": 0.10464
}

Semantic roles & 50–950 ramp

primary
#7839BA
secondary
#A8C887
accent
#DC4B96
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7839BA

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

Preview Lab → · Contrast checker → · Palette generator →

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