#7839B2#7839B2

#7839B2 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.8% C 0.184 H 304.2°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#7839B2
RGBrgb(120, 57, 178)
HSLhsl(271, 51%, 46%)
HSVhsv(271, 68%, 70%)
CMYKcmyk(32.6%, 68%, 0%, 30.2%)
CIE-LABlab(38.08, 49.94, -53.67)
CIE-LCHlch(38.08, 73.31, 312.94°)
OKLaboklab(48.82% 0.1036 -0.1524)
OKLCHoklch(48.82% 0.184 304.2)
XYZxyz(17.2429, 10.1337, 43.1585)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7839B2 #73B239
analogous
#3C39B2 #7839B2 #B239AF
triadic
#7839B2 #B27839 #39B278
tetradic
#7839B2 #B23C39 #73B239 #39AFB2
square
#7839B2 #B23C39 #73B239 #39AFB2
split-complementary
#7839B2 #AFB239 #39B23C
monochromatic
#391B55 #592A84 #7839B2 #965DCB #B48BDA

Accessibility & contrast

On white

6.94
#7839B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7839B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7839B2
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7839B2#FFFFFF#000000##FFFFFF
##7839B21.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#095AAF
Tritanopia (blue-blind)
#6D5471
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7839b2;
/* rgb */ color: rgb(120, 57, 178);
/* oklch */ color: oklch(48.8% 0.184 304.2);
Tailwind
colors: {
  custom: {
    50: '#a474ca',
    500: '#7839b2',
    950: '#000000',
  },
}
SCSS
$custom: #7839b2;
$custom-light: #a474ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7839b2",
  "rgb": {
    "r": 120,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 271.24,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48815,
    "c": 0.18433,
    "h": 304.2
  },
  "luminance": 0.10134
}

Semantic roles & 50–950 ramp

primary
#7839B2
secondary
#A2C482
accent
#DB4D91
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7839B2

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

Preview Lab → · Contrast checker → · Palette generator →

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