#7839B8#7839B8

#7839B8 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.3% C 0.191 H 302.6°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7839B8
RGBrgb(120, 57, 184)
HSLhsl(270, 53%, 47%)
HSVhsv(270, 69%, 72%)
CMYKcmyk(34.8%, 69%, 0%, 27.8%)
CIE-LABlab(38.52, 51.40, -56.51)
CIE-LCHlch(38.52, 76.39, 312.29°)
OKLaboklab(49.26% 0.1029 -0.1608)
OKLCHoklch(49.26% 0.191 302.6)
XYZxyz(17.8586, 10.3800, 46.4008)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7839B8 #79B839
analogous
#3939B8 #7839B8 #B839B8
triadic
#7839B8 #B87839 #39B878
tetradic
#7839B8 #B83939 #79B839 #39B8B8
square
#7839B8 #B83939 #79B839 #39B8B8
split-complementary
#7839B8 #B8B839 #39B839
monochromatic
#3B1C5B #5A2B89 #7839B8 #9760CE #B58FDC

Accessibility & contrast

On white

6.83
#7839B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7839B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7839B8
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7839B8#FFFFFF#000000##FFFFFF
##7839B81.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABC
Deuteranopia (green-blind)
#005AB5
Tritanopia (blue-blind)
#6B5674
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7839b8;
/* rgb */ color: rgb(120, 57, 184);
/* oklch */ color: oklch(49.3% 0.191 302.6);
Tailwind
colors: {
  custom: {
    50: '#a474ce',
    500: '#7839b8',
    950: '#000000',
  },
}
SCSS
$custom: #7839b8;
$custom-light: #a474ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7839b8",
  "rgb": {
    "r": 120,
    "g": 57,
    "b": 184
  },
  "hsl": {
    "h": 269.764,
    "s": 52.697,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49264,
    "c": 0.19087,
    "h": 302.6
  },
  "luminance": 0.1038
}

Semantic roles & 50–950 ramp

primary
#7839B8
secondary
#A7C786
accent
#DC4C94
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7839B8

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

Preview Lab → · Contrast checker → · Palette generator →

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