#7839AA#7839AA

#7839AA is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.2% C 0.176 H 306.5°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#7839AA
RGBrgb(120, 57, 170)
HSLhsl(273, 50%, 45%)
HSVhsv(273, 66%, 67%)
CMYKcmyk(29.4%, 66.5%, 0%, 33.3%)
CIE-LABlab(37.52, 48.02, -49.82)
CIE-LCHlch(37.52, 69.20, 313.95°)
OKLaboklab(48.24% 0.1045 -0.1411)
OKLCHoklch(48.24% 0.176 306.5)
XYZxyz(16.4630, 9.8218, 39.0509)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7839AA #6BAA39
analogous
#3F39AA #7839AA #AA39A4
triadic
#7839AA #AA7839 #39AA78
tetradic
#7839AA #AA3F39 #6BAA39 #39A4AA
square
#7839AA #AA3F39 #6BAA39 #39A4AA
split-complementary
#7839AA #A4AA39 #39AA3F
monochromatic
#371A4E #582A7C #7839AA #9659C7 #B387D7

Accessibility & contrast

On white

7.08
#7839AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7839AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7839AA#FFFFFF#000000##FFFFFF
##7839AA1.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#1D59A8
Tritanopia (blue-blind)
#70516C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7839aa;
/* rgb */ color: rgb(120, 57, 170);
/* oklch */ color: oklch(48.2% 0.176 306.5);
Tailwind
colors: {
  custom: {
    50: '#a374c4',
    500: '#7839aa',
    950: '#000000',
  },
}
SCSS
$custom: #7839aa;
$custom-light: #a374c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7839aa",
  "rgb": {
    "r": 120,
    "g": 57,
    "b": 170
  },
  "hsl": {
    "h": 273.451,
    "s": 49.78,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48235,
    "c": 0.1756,
    "h": 306.5
  },
  "luminance": 0.09822
}

Semantic roles & 50–950 ramp

primary
#7839AA
secondary
#9CC17E
accent
#D94E8C
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0813
muted
#7F7B82

Preview Lab

Preview with #7839AA

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

Preview Lab → · Contrast checker → · Palette generator →

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