#7841AA#7841AA

#7841AA is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.3% C 0.164 H 305.3°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#7841AA
RGBrgb(120, 65, 170)
HSLhsl(271, 45%, 46%)
HSVhsv(271, 62%, 67%)
CMYKcmyk(29.4%, 61.8%, 0%, 33.3%)
CIE-LABlab(39.03, 43.91, -47.39)
CIE-LCHlch(39.03, 64.61, 312.82°)
OKLaboklab(49.33% 0.0949 -0.134)
OKLCHoklch(49.33% 0.164 305.3)
XYZxyz(16.8901, 10.6761, 39.1933)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841AA #73AA41
analogous
#4341AA #7841AA #AA41A7
triadic
#7841AA #AA7841 #41AA78
tetradic
#7841AA #AA4341 #73AA41 #41A7AA
square
#7841AA #AA4341 #73AA41 #41A7AA
split-complementary
#7841AA #A7AA41 #41AA43
monochromatic
#391F51 #59307E #7841AA #9664C4 #B491D5

Accessibility & contrast

On white

6.70
#7841AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#7841AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841AA
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841AA#FFFFFF#000000##FFFFFF
##7841AA1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065AAD
Deuteranopia (green-blind)
#2A5CA8
Tritanopia (blue-blind)
#6F566F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7841aa;
/* rgb */ color: rgb(120, 65, 170);
/* oklch */ color: oklch(49.3% 0.164 305.3);
Tailwind
colors: {
  custom: {
    50: '#a278c4',
    500: '#7841aa',
    950: '#000000',
  },
}
SCSS
$custom: #7841aa;
$custom-light: #a278c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7841aa",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 170
  },
  "hsl": {
    "h": 271.429,
    "s": 44.681,
    "l": 46.078
  },
  "oklch": {
    "l": 0.49326,
    "c": 0.1642,
    "h": 305.3
  },
  "luminance": 0.10676
}

Semantic roles & 50–950 ramp

primary
#7841AA
secondary
#A2C087
accent
#D45391
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7841AA

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

Preview Lab → · Contrast checker → · Palette generator →

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