#7839DB#7839DB

#7839DB is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.1% C 0.228 H 294.8°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7839DB
RGBrgb(120, 57, 219)
HSLhsl(263, 69%, 54%)
HSVhsv(263, 74%, 86%)
CMYKcmyk(45.2%, 74%, 0%, 14.1%)
CIE-LABlab(41.27, 60.11, -72.36)
CIE-LCHlch(41.27, 94.06, 309.72°)
OKLaboklab(52.07% 0.096 -0.2073)
OKLCHoklch(52.07% 0.228 294.8)
XYZxyz(21.9916, 12.0332, 68.1680)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7839DB #9CDB39
analogous
#394BDB #7839DB #C939DB
triadic
#7839DB #DB7839 #39DB78
tetradic
#7839DB #DB394B #9CDB39 #39DBC9
square
#7839DB #DB394B #9CDB39 #39DBC9
split-complementary
#7839DB #DBC939 #4BDB39
monochromatic
#411882 #5B21B6 #7839DB #9B6DE4 #BFA1EE

Accessibility & contrast

On white

6.16
#7839DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7839DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7839DB
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7839DB#FFFFFF#000000##FFFFFF
##7839DB1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E0
Deuteranopia (green-blind)
#005FD8
Tritanopia (blue-blind)
#5C6488
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7839db;
/* rgb */ color: rgb(120, 57, 219);
/* oklch */ color: oklch(52.1% 0.228 294.8);
Tailwind
colors: {
  custom: {
    50: '#a876e7',
    500: '#7839db',
    950: '#000000',
  },
}
SCSS
$custom: #7839db;
$custom-light: #a876e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7839db",
  "rgb": {
    "r": 120,
    "g": 57,
    "b": 219
  },
  "hsl": {
    "h": 263.333,
    "s": 69.231,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52071,
    "c": 0.22849,
    "h": 294.8
  },
  "luminance": 0.12034
}

Semantic roles & 50–950 ramp

primary
#7839DB
secondary
#C0DA95
accent
#EC3CA7
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7839DB

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

Preview Lab → · Contrast checker → · Palette generator →

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