#7841BE#7841BE

#7841BE is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.7% C 0.187 H 299.9°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#7841BE
RGBrgb(120, 65, 190)
HSLhsl(266, 49%, 50%)
HSVhsv(266, 66%, 75%)
CMYKcmyk(36.8%, 65.8%, 0%, 25.5%)
CIE-LABlab(40.40, 48.90, -56.99)
CIE-LCHlch(40.40, 75.09, 310.63°)
OKLaboklab(50.75% 0.0934 -0.1622)
OKLCHoklch(50.75% 0.187 299.9)
XYZxyz(18.9280, 11.4912, 49.9260)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841BE #87BE41
analogous
#4148BE #7841BE #B741BE
triadic
#7841BE #BE7841 #41BE78
tetradic
#7841BE #BE4148 #87BE41 #41BEB7
square
#7841BE #BE4148 #87BE41 #41BEB7
split-complementary
#7841BE #BEB741 #48BE41
monochromatic
#3E2263 #5B3190 #7841BE #986FCE #B99CDD

Accessibility & contrast

On white

6.37
#7841BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7841BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841BE
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841BE#FFFFFF#000000##FFFFFF
##7841BE1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC2
Deuteranopia (green-blind)
#005EBB
Tritanopia (blue-blind)
#685D7A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7841be;
/* rgb */ color: rgb(120, 65, 190);
/* oklch */ color: oklch(50.7% 0.187 299.9);
Tailwind
colors: {
  custom: {
    50: '#a479d2',
    500: '#7841be',
    950: '#000000',
  },
}
SCSS
$custom: #7841be;
$custom-light: #a479d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7841be",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 190
  },
  "hsl": {
    "h": 266.4,
    "s": 49.02,
    "l": 50
  },
  "oklch": {
    "l": 0.50749,
    "c": 0.18721,
    "h": 299.9
  },
  "luminance": 0.11491
}

Semantic roles & 50–950 ramp

primary
#7841BE
secondary
#B1C991
accent
#D94F9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7841BE

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

Preview Lab → · Contrast checker → · Palette generator →

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