#7841D0#7841D0

#7841D0 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.208 H 296.0°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7841D0
RGBrgb(120, 65, 208)
HSLhsl(263, 60%, 54%)
HSVhsv(263, 69%, 82%)
CMYKcmyk(42.3%, 68.8%, 0%, 18.4%)
CIE-LABlab(41.73, 53.52, -65.28)
CIE-LCHlch(41.73, 84.41, 309.35°)
OKLaboklab(52.13% 0.091 -0.1866)
OKLCHoklch(52.13% 0.208 296)
XYZxyz(21.0182, 12.3273, 60.9343)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841D0 #99D041
analogous
#4151D0 #7841D0 #C041D0
triadic
#7841D0 #D07841 #41D078
tetradic
#7841D0 #D04151 #99D041 #41D0C0
square
#7841D0 #D04151 #99D041 #41D0C0
split-complementary
#7841D0 #D0C041 #51D041
monochromatic
#411E79 #5B2AAA #7841D0 #9B72DC #BEA3E8

Accessibility & contrast

On white

6.06
#7841D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7841D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841D0
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841D0#FFFFFF#000000##FFFFFF
##7841D01.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D4
Deuteranopia (green-blind)
#0060CD
Tritanopia (blue-blind)
#616484
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7841d0;
/* rgb */ color: rgb(120, 65, 208);
/* oklch */ color: oklch(52.1% 0.208 296.0);
Tailwind
colors: {
  custom: {
    50: '#a67adf',
    500: '#7841d0',
    950: '#000000',
  },
}
SCSS
$custom: #7841d0;
$custom-light: #a67adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7841d0",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 208
  },
  "hsl": {
    "h": 263.077,
    "s": 60.338,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52126,
    "c": 0.20759,
    "h": 296
  },
  "luminance": 0.12328
}

Semantic roles & 50–950 ramp

primary
#7841D0
secondary
#BDD598
accent
#E344A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7841D0

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

Preview Lab → · Contrast checker → · Palette generator →

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