#7841B2#7841B2

#7841B2 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.9% C 0.173 H 303.0°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#7841B2
RGBrgb(120, 65, 178)
HSLhsl(269, 47%, 48%)
HSVhsv(269, 63%, 70%)
CMYKcmyk(32.6%, 63.5%, 0%, 30.2%)
CIE-LABlab(39.56, 45.88, -51.28)
CIE-LCHlch(39.56, 68.81, 311.82°)
OKLaboklab(49.88% 0.0945 -0.1454)
OKLCHoklch(49.88% 0.173 303)
XYZxyz(17.6701, 10.9880, 43.3008)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841B2 #7BB241
analogous
#4142B2 #7841B2 #B141B2
triadic
#7841B2 #B27841 #41B278
tetradic
#7841B2 #B24142 #7BB241 #41B2B1
square
#7841B2 #B24142 #7BB241 #41B2B1
split-complementary
#7841B2 #B2B141 #42B241
monochromatic
#3C2058 #5A3185 #7841B2 #9768C8 #B695D8

Accessibility & contrast

On white

6.57
#7841B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7841B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7841B2#FFFFFF#000000##FFFFFF
##7841B21.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#1E5DAF
Tritanopia (blue-blind)
#6D5973
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7841b2;
/* rgb */ color: rgb(120, 65, 178);
/* oklch */ color: oklch(49.9% 0.173 303.0);
Tailwind
colors: {
  custom: {
    50: '#a379ca',
    500: '#7841b2',
    950: '#000000',
  },
}
SCSS
$custom: #7841b2;
$custom-light: #a379ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7841b2",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 269.204,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4988,
    "c": 0.17344,
    "h": 303
  },
  "luminance": 0.10988
}

Semantic roles & 50–950 ramp

primary
#7841B2
secondary
#A8C48B
accent
#D65296
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7841B2

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

Preview Lab → · Contrast checker → · Palette generator →

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