#7841BB#7841BB

#7841BB is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.5% C 0.184 H 300.7°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#7841BB
RGBrgb(120, 65, 187)
HSLhsl(267, 48%, 49%)
HSVhsv(267, 65%, 73%)
CMYKcmyk(35.8%, 65.2%, 0%, 26.7%)
CIE-LABlab(40.18, 48.14, -55.58)
CIE-LCHlch(40.18, 73.53, 310.90°)
OKLaboklab(50.53% 0.0937 -0.1581)
OKLCHoklch(50.53% 0.184 300.7)
XYZxyz(18.6035, 11.3614, 48.2169)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841BB #84BB41
analogous
#4147BB #7841BB #B541BB
triadic
#7841BB #BB7841 #41BB78
tetradic
#7841BB #BB4147 #84BB41 #41BBB5
square
#7841BB #BB4147 #84BB41 #41BBB5
split-complementary
#7841BB #BBB541 #47BB41
monochromatic
#3E2160 #5B318E #7841BB #986DCC #B89ADC

Accessibility & contrast

On white

6.42
#7841BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#7841BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7841BB#FFFFFF#000000##FFFFFF
##7841BB1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#045EB8
Tritanopia (blue-blind)
#6A5C78
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7841bb;
/* rgb */ color: rgb(120, 65, 187);
/* oklch */ color: oklch(50.5% 0.184 300.7);
Tailwind
colors: {
  custom: {
    50: '#a479d0',
    500: '#7841bb',
    950: '#000000',
  },
}
SCSS
$custom: #7841bb;
$custom-light: #a479d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7841bb",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 187
  },
  "hsl": {
    "h": 267.049,
    "s": 48.413,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50528,
    "c": 0.18378,
    "h": 300.7
  },
  "luminance": 0.11362
}

Semantic roles & 50–950 ramp

primary
#7841BB
secondary
#AFC890
accent
#D8509B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7841BB

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

Preview Lab → · Contrast checker → · Palette generator →

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