#7841D7#7841D7

#7841D7 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.215 H 294.6°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7841D7
RGBrgb(120, 65, 215)
HSLhsl(262, 65%, 55%)
HSVhsv(262, 70%, 84%)
CMYKcmyk(44.2%, 69.8%, 0%, 15.7%)
CIE-LABlab(42.28, 55.33, -68.42)
CIE-LCHlch(42.28, 87.99, 308.96°)
OKLaboklab(52.68% 0.0898 -0.1958)
OKLCHoklch(52.68% 0.215 294.6)
XYZxyz(21.8985, 12.6794, 65.5704)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841D7 #A0D741
analogous
#4155D7 #7841D7 #C341D7
triadic
#7841D7 #D77841 #41D778
tetradic
#7841D7 #D74155 #A0D741 #41D7C3
square
#7841D7 #D74155 #A0D741 #41D7C3
split-complementary
#7841D7 #D7C341 #55D741
monochromatic
#411B82 #5A26B5 #7841D7 #9C74E2 #C0A6EC

Accessibility & contrast

On white

5.94
#7841D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7841D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841D7
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841D7#FFFFFF#000000##FFFFFF
##7841D71.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DB
Deuteranopia (green-blind)
#0061D4
Tritanopia (blue-blind)
#5D6787
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7841d7;
/* rgb */ color: rgb(120, 65, 215);
/* oklch */ color: oklch(52.7% 0.215 294.6);
Tailwind
colors: {
  custom: {
    50: '#a77ae4',
    500: '#7841d7',
    950: '#000000',
  },
}
SCSS
$custom: #7841d7;
$custom-light: #a77ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#7841d7",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 215
  },
  "hsl": {
    "h": 262,
    "s": 65.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.52684,
    "c": 0.21542,
    "h": 294.6
  },
  "luminance": 0.1268
}

Semantic roles & 50–950 ramp

primary
#7841D7
secondary
#C2D99A
accent
#E840AA
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7841D7

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

Preview Lab → · Contrast checker → · Palette generator →

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