#7841D4#7841D4

#7841D4 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.212 H 295.2°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7841D4
RGBrgb(120, 65, 212)
HSLhsl(262, 63%, 54%)
HSVhsv(262, 69%, 83%)
CMYKcmyk(43.4%, 69.3%, 0%, 16.9%)
CIE-LABlab(42.04, 54.55, -67.08)
CIE-LCHlch(42.04, 86.46, 309.12°)
OKLaboklab(52.44% 0.0903 -0.1919)
OKLCHoklch(52.44% 0.212 295.2)
XYZxyz(21.5165, 12.5266, 63.5588)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841D4 #9DD441
analogous
#4154D4 #7841D4 #C241D4
triadic
#7841D4 #D47841 #41D478
tetradic
#7841D4 #D44154 #9DD441 #41D4C2
square
#7841D4 #D44154 #9DD441 #41D4C2
split-complementary
#7841D4 #D4C241 #54D441
monochromatic
#411D7E #5B28B0 #7841D4 #9B73DF #BFA5EB

Accessibility & contrast

On white

5.99
#7841D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7841D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841D4
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841D4#FFFFFF#000000##FFFFFF
##7841D41.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D8
Deuteranopia (green-blind)
#0061D1
Tritanopia (blue-blind)
#5F6686
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7841d4;
/* rgb */ color: rgb(120, 65, 212);
/* oklch */ color: oklch(52.4% 0.212 295.2);
Tailwind
colors: {
  custom: {
    50: '#a67ae2',
    500: '#7841d4',
    950: '#000000',
  },
}
SCSS
$custom: #7841d4;
$custom-light: #a67ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#7841d4",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 212
  },
  "hsl": {
    "h": 262.449,
    "s": 63.09,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52443,
    "c": 0.21208,
    "h": 295.2
  },
  "luminance": 0.12527
}

Semantic roles & 50–950 ramp

primary
#7841D4
secondary
#C0D899
accent
#E642A9
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #7841D4

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

Preview Lab → · Contrast checker → · Palette generator →

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