#7841D3#7841D3

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

Color values

HEX#7841D3
RGBrgb(120, 65, 211)
HSLhsl(263, 62%, 54%)
HSVhsv(263, 69%, 83%)
CMYKcmyk(43.1%, 69.2%, 0%, 17.3%)
CIE-LABlab(41.96, 54.29, -66.63)
CIE-LCHlch(41.96, 85.95, 309.18°)
OKLaboklab(52.36% 0.0905 -0.1906)
OKLCHoklch(52.36% 0.211 295.4)
XYZxyz(21.3908, 12.4763, 62.8965)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841D3 #9CD341
analogous
#4153D3 #7841D3 #C141D3
triadic
#7841D3 #D37841 #41D378
tetradic
#7841D3 #D34153 #9CD341 #41D3C1
square
#7841D3 #D34153 #9CD341 #41D3C1
split-complementary
#7841D3 #D3C141 #53D341
monochromatic
#411D7D #5B28AE #7841D3 #9B73DF #BFA4EA

Accessibility & contrast

On white

6.01
#7841D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7841D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841D3
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841D3#FFFFFF#000000##FFFFFF
##7841D31.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D7
Deuteranopia (green-blind)
#0061D0
Tritanopia (blue-blind)
#5F6585
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7841d3;
/* rgb */ color: rgb(120, 65, 211);
/* oklch */ color: oklch(52.4% 0.211 295.4);
Tailwind
colors: {
  custom: {
    50: '#a67ae1',
    500: '#7841d3',
    950: '#000000',
  },
}
SCSS
$custom: #7841d3;
$custom-light: #a67ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#7841d3",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 211
  },
  "hsl": {
    "h": 262.603,
    "s": 62.393,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52363,
    "c": 0.21095,
    "h": 295.4
  },
  "luminance": 0.12477
}

Semantic roles & 50–950 ramp

primary
#7841D3
secondary
#C0D799
accent
#E542A8
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7841D3

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

Preview Lab → · Contrast checker → · Palette generator →

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