#7841BC#7841BC

#7841BC is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.6% C 0.185 H 300.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#7841BC
RGBrgb(120, 65, 188)
HSLhsl(267, 49%, 50%)
HSVhsv(267, 65%, 74%)
CMYKcmyk(36.2%, 65.4%, 0%, 26.3%)
CIE-LABlab(40.25, 48.39, -56.05)
CIE-LCHlch(40.25, 74.05, 310.81°)
OKLaboklab(50.6% 0.0936 -0.1595)
OKLCHoklch(50.6% 0.185 300.4)
XYZxyz(18.7109, 11.4044, 48.7827)
Luminance0.1140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841BC #85BC41
analogous
#4148BC #7841BC #B641BC
triadic
#7841BC #BC7841 #41BC78
tetradic
#7841BC #BC4148 #85BC41 #41BCB6
square
#7841BC #BC4148 #85BC41 #41BCB6
split-complementary
#7841BC #BCB641 #48BC41
monochromatic
#3E2261 #5B318F #7841BC #986ECD #B89BDC

Accessibility & contrast

On white

6.40
#7841BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#7841BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841BC
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841BC#FFFFFF#000000##FFFFFF
##7841BC1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#005EB9
Tritanopia (blue-blind)
#695D79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7841bc;
/* rgb */ color: rgb(120, 65, 188);
/* oklch */ color: oklch(50.6% 0.185 300.4);
Tailwind
colors: {
  custom: {
    50: '#a479d1',
    500: '#7841bc',
    950: '#000000',
  },
}
SCSS
$custom: #7841bc;
$custom-light: #a479d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7841bc",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 188
  },
  "hsl": {
    "h": 266.829,
    "s": 48.617,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50601,
    "c": 0.18492,
    "h": 300.4
  },
  "luminance": 0.11405
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7841BC

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

Preview Lab → · Contrast checker → · Palette generator →

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