#7841CA#7841CA

#7841CA is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.7% C 0.201 H 297.2°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7841CA
RGBrgb(120, 65, 202)
HSLhsl(264, 56%, 52%)
HSVhsv(264, 68%, 79%)
CMYKcmyk(40.6%, 67.8%, 0%, 20.8%)
CIE-LABlab(41.28, 51.97, -62.55)
CIE-LCHlch(41.28, 81.32, 309.72°)
OKLaboklab(51.66% 0.0919 -0.1786)
OKLCHoklch(51.66% 0.201 297.2)
XYZxyz(20.2939, 12.0376, 57.1199)
Luminance0.1204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841CA #93CA41
analogous
#414ECA #7841CA #BD41CA
triadic
#7841CA #CA7841 #41CA78
tetradic
#7841CA #CA414E #93CA41 #41CABD
square
#7841CA #CA414E #93CA41 #41CABD
split-complementary
#7841CA #CABD41 #4ECA41
monochromatic
#402071 #5B2DA1 #7841CA #9A71D7 #BCA1E5

Accessibility & contrast

On white

6.16
#7841CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7841CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841CA
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841CA#FFFFFF#000000##FFFFFF
##7841CA1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CE
Deuteranopia (green-blind)
#0060C7
Tritanopia (blue-blind)
#646280
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7841ca;
/* rgb */ color: rgb(120, 65, 202);
/* oklch */ color: oklch(51.7% 0.201 297.2);
Tailwind
colors: {
  custom: {
    50: '#a579db',
    500: '#7841ca',
    950: '#000000',
  },
}
SCSS
$custom: #7841ca;
$custom-light: #a579db;
$custom-dark: #000000;
JSON
{
  "hex": "#7841ca",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 202
  },
  "hsl": {
    "h": 264.088,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.51657,
    "c": 0.20084,
    "h": 297.2
  },
  "luminance": 0.12038
}

Semantic roles & 50–950 ramp

primary
#7841CA
secondary
#B9D196
accent
#E048A3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7841CA

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

Preview Lab → · Contrast checker → · Palette generator →

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