#7841C4#7841C4

#7841C4 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.2% C 0.194 H 298.5°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7841C4
RGBrgb(120, 65, 196)
HSLhsl(265, 53%, 51%)
HSVhsv(265, 67%, 77%)
CMYKcmyk(38.8%, 66.8%, 0%, 23.1%)
CIE-LABlab(40.83, 50.43, -59.79)
CIE-LCHlch(40.83, 78.21, 310.15°)
OKLaboklab(51.2% 0.0927 -0.1705)
OKLCHoklch(51.2% 0.194 298.5)
XYZxyz(19.5973, 11.7589, 53.4511)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841C4 #8DC441
analogous
#414BC4 #7841C4 #B941C4
triadic
#7841C4 #C47841 #41C478
tetradic
#7841C4 #C4414B #8DC441 #41C4B9
square
#7841C4 #C4414B #8DC441 #41C4B9
split-complementary
#7841C4 #C4B941 #4BC441
monochromatic
#3F216A #5B2F98 #7841C4 #9970D3 #BA9EE1

Accessibility & contrast

On white

6.27
#7841C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7841C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841C4
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841C4#FFFFFF#000000##FFFFFF
##7841C41.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#005FC1
Tritanopia (blue-blind)
#66607D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7841c4;
/* rgb */ color: rgb(120, 65, 196);
/* oklch */ color: oklch(51.2% 0.194 298.5);
Tailwind
colors: {
  custom: {
    50: '#a579d7',
    500: '#7841c4',
    950: '#000000',
  },
}
SCSS
$custom: #7841c4;
$custom-light: #a579d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7841c4",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 196
  },
  "hsl": {
    "h": 265.191,
    "s": 52.61,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51198,
    "c": 0.19405,
    "h": 298.5
  },
  "luminance": 0.11759
}

Semantic roles & 50–950 ramp

primary
#7841C4
secondary
#B5CD93
accent
#DC4C9F
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7841C4

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

Preview Lab → · Contrast checker → · Palette generator →

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