#7841D2#7841D2

#7841D2 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.3% C 0.210 H 295.6°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7841D2
RGBrgb(120, 65, 210)
HSLhsl(263, 62%, 54%)
HSVhsv(263, 69%, 82%)
CMYKcmyk(42.9%, 69%, 0%, 17.6%)
CIE-LABlab(41.89, 54.03, -66.18)
CIE-LCHlch(41.89, 85.44, 309.23°)
OKLaboklab(52.28% 0.0906 -0.1892)
OKLCHoklch(52.28% 0.21 295.6)
XYZxyz(21.2658, 12.4263, 62.2384)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841D2 #9BD241
analogous
#4153D2 #7841D2 #C141D2
triadic
#7841D2 #D27841 #41D278
tetradic
#7841D2 #D24153 #9BD241 #41D2C1
square
#7841D2 #D24153 #9BD241 #41D2C1
split-complementary
#7841D2 #D2C141 #53D241
monochromatic
#411D7B #5B29AD #7841D2 #9B72DE #BEA4E9

Accessibility & contrast

On white

6.03
#7841D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7841D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841D2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841D2#FFFFFF#000000##FFFFFF
##7841D21.006.033.496.03
#FFFFFF6.031.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#0061CF
Tritanopia (blue-blind)
#606585
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7841d2;
/* rgb */ color: rgb(120, 65, 210);
/* oklch */ color: oklch(52.3% 0.210 295.6);
Tailwind
colors: {
  custom: {
    50: '#a67ae1',
    500: '#7841d2',
    950: '#000000',
  },
}
SCSS
$custom: #7841d2;
$custom-light: #a67ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#7841d2",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 210
  },
  "hsl": {
    "h": 262.759,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52284,
    "c": 0.20984,
    "h": 295.6
  },
  "luminance": 0.12427
}

Semantic roles & 50–950 ramp

primary
#7841D2
secondary
#BFD698
accent
#E543A7
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7841D2

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

Preview Lab → · Contrast checker → · Palette generator →

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