#7841CC#7841CC

#7841CC is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.8% C 0.203 H 296.8°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#7841CC
RGBrgb(120, 65, 204)
HSLhsl(264, 58%, 53%)
HSVhsv(264, 68%, 80%)
CMYKcmyk(41.2%, 68.1%, 0%, 20%)
CIE-LABlab(41.43, 52.48, -63.46)
CIE-LCHlch(41.43, 82.35, 309.59°)
OKLaboklab(51.81% 0.0916 -0.1813)
OKLCHoklch(51.81% 0.203 296.8)
XYZxyz(20.5323, 12.1329, 58.3751)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841CC #95CC41
analogous
#414FCC #7841CC #BD41CC
triadic
#7841CC #CC7841 #41CC78
tetradic
#7841CC #CC414F #95CC41 #41CCBD
square
#7841CC #CC414F #95CC41 #41CCBD
split-complementary
#7841CC #CCBD41 #4FCC41
monochromatic
#401F74 #5B2CA4 #7841CC #9A71D9 #BDA1E6

Accessibility & contrast

On white

6.13
#7841CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7841CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841CC
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841CC#FFFFFF#000000##FFFFFF
##7841CC1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#636381
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7841cc;
/* rgb */ color: rgb(120, 65, 204);
/* oklch */ color: oklch(51.8% 0.203 296.8);
Tailwind
colors: {
  custom: {
    50: '#a579dc',
    500: '#7841cc',
    950: '#000000',
  },
}
SCSS
$custom: #7841cc;
$custom-light: #a579dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7841cc",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 204
  },
  "hsl": {
    "h": 263.741,
    "s": 57.676,
    "l": 52.745
  },
  "oklch": {
    "l": 0.51812,
    "c": 0.20309,
    "h": 296.8
  },
  "luminance": 0.12133
}

Semantic roles & 50–950 ramp

primary
#7841CC
secondary
#BBD396
accent
#E147A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7841CC

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

Preview Lab → · Contrast checker → · Palette generator →

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