#7841B0#7841B0

#7841B0 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.7% C 0.171 H 303.6°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#7841B0
RGBrgb(120, 65, 176)
HSLhsl(270, 46%, 47%)
HSVhsv(270, 63%, 69%)
CMYKcmyk(31.8%, 63.1%, 0%, 31%)
CIE-LABlab(39.43, 45.39, -50.32)
CIE-LCHlch(39.43, 67.76, 312.05°)
OKLaboklab(49.74% 0.0946 -0.1426)
OKLCHoklch(49.74% 0.171 303.6)
XYZxyz(17.4707, 10.9083, 42.2510)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841B0 #79B041
analogous
#4141B0 #7841B0 #B041B0
triadic
#7841B0 #B07841 #41B078
tetradic
#7841B0 #B04141 #79B041 #41B0B0
square
#7841B0 #B04141 #79B041 #41B0B0
split-complementary
#7841B0 #B0B041 #41B041
monochromatic
#3B2057 #5A3083 #7841B0 #9767C7 #B594D7

Accessibility & contrast

On white

6.60
#7841B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7841B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7841B0#FFFFFF#000000##FFFFFF
##7841B01.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB3
Deuteranopia (green-blind)
#215DAE
Tritanopia (blue-blind)
#6D5872
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7841b0;
/* rgb */ color: rgb(120, 65, 176);
/* oklch */ color: oklch(49.7% 0.171 303.6);
Tailwind
colors: {
  custom: {
    50: '#a379c8',
    500: '#7841b0',
    950: '#000000',
  },
}
SCSS
$custom: #7841b0;
$custom-light: #a379c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7841b0",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 176
  },
  "hsl": {
    "h": 269.73,
    "s": 46.058,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4974,
    "c": 0.17113,
    "h": 303.6
  },
  "luminance": 0.10908
}

Semantic roles & 50–950 ramp

primary
#7841B0
secondary
#A7C38A
accent
#D65294
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7841B0

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

Preview Lab → · Contrast checker → · Palette generator →

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