#7839C3#7839C3

#7839C3 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.1% C 0.203 H 299.9°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7839C3
RGBrgb(120, 57, 195)
HSLhsl(267, 55%, 49%)
HSVhsv(267, 71%, 76%)
CMYKcmyk(38.5%, 70.8%, 0%, 23.5%)
CIE-LABlab(39.34, 54.10, -61.62)
CIE-LCHlch(39.34, 82.00, 311.28°)
OKLaboklab(50.11% 0.1011 -0.1758)
OKLCHoklch(50.11% 0.203 299.9)
XYZxyz(19.0567, 10.8593, 52.7112)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7839C3 #84C339
analogous
#393FC3 #7839C3 #BD39C3
triadic
#7839C3 #C37839 #39C378
tetradic
#7839C3 #C3393F #84C339 #39C3BD
square
#7839C3 #C3393F #84C339 #39C3BD
split-complementary
#7839C3 #C3BD39 #3FC339
monochromatic
#3E1D64 #5B2B94 #7839C3 #9867D2 #B896E0

Accessibility & contrast

On white

6.62
#7839C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7839C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7839C3
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7839C3#FFFFFF#000000##FFFFFF
##7839C31.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC7
Deuteranopia (green-blind)
#005CC0
Tritanopia (blue-blind)
#675B7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7839c3;
/* rgb */ color: rgb(120, 57, 195);
/* oklch */ color: oklch(50.1% 0.203 299.9);
Tailwind
colors: {
  custom: {
    50: '#a575d6',
    500: '#7839c3',
    950: '#000000',
  },
}
SCSS
$custom: #7839c3;
$custom-light: #a575d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7839c3",
  "rgb": {
    "r": 120,
    "g": 57,
    "b": 195
  },
  "hsl": {
    "h": 267.391,
    "s": 54.762,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50112,
    "c": 0.2028,
    "h": 299.9
  },
  "luminance": 0.10859
}

Semantic roles & 50–950 ramp

primary
#7839C3
secondary
#AFCC8C
accent
#DE4A9A
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7839C3

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

Preview Lab → · Contrast checker → · Palette generator →

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