#7841C5#7841C5

#7841C5 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.3% C 0.195 H 298.3°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#7841C5
RGBrgb(120, 65, 197)
HSLhsl(265, 53%, 51%)
HSVhsv(265, 67%, 77%)
CMYKcmyk(39.1%, 67%, 0%, 22.7%)
CIE-LABlab(40.90, 50.68, -60.25)
CIE-LCHlch(40.90, 78.73, 310.07°)
OKLaboklab(51.27% 0.0926 -0.1718)
OKLCHoklch(51.27% 0.195 298.3)
XYZxyz(19.7115, 11.8046, 54.0525)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841C5 #8EC541
analogous
#414CC5 #7841C5 #BA41C5
triadic
#7841C5 #C57841 #41C578
tetradic
#7841C5 #C5414C #8EC541 #41C5BA
square
#7841C5 #C5414C #8EC541 #41C5BA
split-complementary
#7841C5 #C5BA41 #4CC541
monochromatic
#40216B #5B2F9A #7841C5 #9970D3 #BB9FE2

Accessibility & contrast

On white

6.25
#7841C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#7841C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841C5
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841C5#FFFFFF#000000##FFFFFF
##7841C51.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#005FC2
Tritanopia (blue-blind)
#66607E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7841c5;
/* rgb */ color: rgb(120, 65, 197);
/* oklch */ color: oklch(51.3% 0.195 298.3);
Tailwind
colors: {
  custom: {
    50: '#a579d7',
    500: '#7841c5',
    950: '#000000',
  },
}
SCSS
$custom: #7841c5;
$custom-light: #a579d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7841c5",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 197
  },
  "hsl": {
    "h": 265,
    "s": 53.226,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51274,
    "c": 0.19518,
    "h": 298.3
  },
  "luminance": 0.11805
}

Semantic roles & 50–950 ramp

primary
#7841C5
secondary
#B6CE94
accent
#DD4BA0
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7841C5

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

Preview Lab → · Contrast checker → · Palette generator →

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