#7839B3#7839B3

#7839B3 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.9% C 0.185 H 303.9°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#7839B3
RGBrgb(120, 57, 179)
HSLhsl(271, 52%, 46%)
HSVhsv(271, 68%, 70%)
CMYKcmyk(33%, 68.2%, 0%, 29.8%)
CIE-LABlab(38.15, 50.18, -54.15)
CIE-LCHlch(38.15, 73.82, 312.82°)
OKLaboklab(48.89% 0.1035 -0.1538)
OKLCHoklch(48.89% 0.185 303.9)
XYZxyz(17.3437, 10.1740, 43.6892)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7839B3 #74B339
analogous
#3B39B3 #7839B3 #B339B1
triadic
#7839B3 #B37839 #39B378
tetradic
#7839B3 #B33B39 #74B339 #39B1B3
square
#7839B3 #B33B39 #74B339 #39B1B3
split-complementary
#7839B3 #B1B339 #39B33B
monochromatic
#3A1B56 #592A85 #7839B3 #965ECC #B48CDA

Accessibility & contrast

On white

6.92
#7839B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7839B3
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7839B3#FFFFFF#000000##FFFFFF
##7839B31.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B7
Deuteranopia (green-blind)
#055AB0
Tritanopia (blue-blind)
#6D5571
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7839b3;
/* rgb */ color: rgb(120, 57, 179);
/* oklch */ color: oklch(48.9% 0.185 303.9);
Tailwind
colors: {
  custom: {
    50: '#a474ca',
    500: '#7839b3',
    950: '#000000',
  },
}
SCSS
$custom: #7839b3;
$custom-light: #a474ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7839b3",
  "rgb": {
    "r": 120,
    "g": 57,
    "b": 179
  },
  "hsl": {
    "h": 270.984,
    "s": 51.695,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48889,
    "c": 0.18543,
    "h": 303.9
  },
  "luminance": 0.10174
}

Semantic roles & 50–950 ramp

primary
#7839B3
secondary
#A3C583
accent
#DB4D92
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7839B3

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

Preview Lab → · Contrast checker → · Palette generator →

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