#7841D9#7841D9

#7841D9 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.218 H 294.3°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#7841D9
RGBrgb(120, 65, 217)
HSLhsl(262, 67%, 55%)
HSVhsv(262, 70%, 85%)
CMYKcmyk(44.7%, 70%, 0%, 14.9%)
CIE-LABlab(42.43, 55.85, -69.31)
CIE-LCHlch(42.43, 89.01, 308.86°)
OKLaboklab(52.85% 0.0894 -0.1984)
OKLCHoklch(52.85% 0.218 294.3)
XYZxyz(22.1570, 12.7828, 66.9321)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841D9 #A2D941
analogous
#4156D9 #7841D9 #C441D9
triadic
#7841D9 #D97841 #41D978
tetradic
#7841D9 #D94156 #A2D941 #41D9C4
square
#7841D9 #D94156 #A2D941 #41D9C4
split-complementary
#7841D9 #D9C441 #56D941
monochromatic
#411B85 #5A25B8 #7841D9 #9C74E3 #C0A7ED

Accessibility & contrast

On white

5.90
#7841D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7841D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841D9
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841D9#FFFFFF#000000##FFFFFF
##7841D91.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DD
Deuteranopia (green-blind)
#0062D6
Tritanopia (blue-blind)
#5C6789
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7841d9;
/* rgb */ color: rgb(120, 65, 217);
/* oklch */ color: oklch(52.8% 0.218 294.3);
Tailwind
colors: {
  custom: {
    50: '#a77ae6',
    500: '#7841d9',
    950: '#000000',
  },
}
SCSS
$custom: #7841d9;
$custom-light: #a77ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#7841d9",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 217
  },
  "hsl": {
    "h": 261.711,
    "s": 66.667,
    "l": 55.294
  },
  "oklch": {
    "l": 0.52845,
    "c": 0.21764,
    "h": 294.3
  },
  "luminance": 0.12783
}

Semantic roles & 50–950 ramp

primary
#7841D9
secondary
#C4DB9B
accent
#EA3EAC
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7841D9

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

Preview Lab → · Contrast checker → · Palette generator →

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