#7841BF#7841BF

#7841BF is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.8% C 0.188 H 299.7°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#7841BF
RGBrgb(120, 65, 191)
HSLhsl(266, 50%, 50%)
HSVhsv(266, 66%, 75%)
CMYKcmyk(37.2%, 66%, 0%, 25.1%)
CIE-LABlab(40.47, 49.15, -57.46)
CIE-LCHlch(40.47, 75.61, 310.55°)
OKLaboklab(50.82% 0.0933 -0.1636)
OKLCHoklch(50.82% 0.188 299.7)
XYZxyz(19.0377, 11.5351, 50.5036)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841BF #88BF41
analogous
#4149BF #7841BF #B741BF
triadic
#7841BF #BF7841 #41BF78
tetradic
#7841BF #BF4149 #88BF41 #41BFB7
square
#7841BF #BF4149 #88BF41 #41BFB7
split-complementary
#7841BF #BFB741 #49BF41
monochromatic
#3F2264 #5B3192 #7841BF #996FCE #B99DDE

Accessibility & contrast

On white

6.35
#7841BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7841BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7841BF#FFFFFF#000000##FFFFFF
##7841BF1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#005EBC
Tritanopia (blue-blind)
#685E7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7841bf;
/* rgb */ color: rgb(120, 65, 191);
/* oklch */ color: oklch(50.8% 0.188 299.7);
Tailwind
colors: {
  custom: {
    50: '#a479d3',
    500: '#7841bf',
    950: '#000000',
  },
}
SCSS
$custom: #7841bf;
$custom-light: #a479d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7841bf",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 191
  },
  "hsl": {
    "h": 266.19,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.50823,
    "c": 0.18835,
    "h": 299.7
  },
  "luminance": 0.11535
}

Semantic roles & 50–950 ramp

primary
#7841BF
secondary
#B1CA92
accent
#D94F9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7841BF

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

Preview Lab → · Contrast checker → · Palette generator →

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