#7841B7#7841B7

#7841B7 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.2% C 0.179 H 301.7°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#7841B7
RGBrgb(120, 65, 183)
HSLhsl(268, 48%, 49%)
HSVhsv(268, 64%, 72%)
CMYKcmyk(34.4%, 64.5%, 0%, 28.2%)
CIE-LABlab(39.90, 47.13, -53.68)
CIE-LCHlch(39.90, 71.43, 311.28°)
OKLaboklab(50.24% 0.0941 -0.1525)
OKLCHoklch(50.24% 0.179 301.7)
XYZxyz(18.1812, 11.1925, 45.9931)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841B7 #80B741
analogous
#4145B7 #7841B7 #B341B7
triadic
#7841B7 #B77841 #41B778
tetradic
#7841B7 #B74145 #80B741 #41B7B3
square
#7841B7 #B74145 #80B741 #41B7B3
split-complementary
#7841B7 #B7B341 #45B741
monochromatic
#3D215D #5A318A #7841B7 #976BCA #B798DA

Accessibility & contrast

On white

6.48
#7841B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7841B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7841B7#FFFFFF#000000##FFFFFF
##7841B71.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#135DB4
Tritanopia (blue-blind)
#6B5B76
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7841b7;
/* rgb */ color: rgb(120, 65, 183);
/* oklch */ color: oklch(50.2% 0.179 301.7);
Tailwind
colors: {
  custom: {
    50: '#a379cd',
    500: '#7841b7',
    950: '#000000',
  },
}
SCSS
$custom: #7841b7;
$custom-light: #a379cd;
$custom-dark: #000000;
JSON
{
  "hex": "#7841b7",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 183
  },
  "hsl": {
    "h": 267.966,
    "s": 47.581,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50237,
    "c": 0.1792,
    "h": 301.7
  },
  "luminance": 0.11193
}

Semantic roles & 50–950 ramp

primary
#7841B7
secondary
#ACC68E
accent
#D75198
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7841B7

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

Preview Lab → · Contrast checker → · Palette generator →

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