#7841C3#7841C3

#7841C3 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.1% C 0.193 H 298.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#7841C3
RGBrgb(120, 65, 195)
HSLhsl(265, 52%, 51%)
HSVhsv(265, 67%, 76%)
CMYKcmyk(38.5%, 66.7%, 0%, 23.5%)
CIE-LABlab(40.76, 50.17, -59.32)
CIE-LCHlch(40.76, 77.70, 310.22°)
OKLaboklab(51.12% 0.0929 -0.1691)
OKLCHoklch(51.12% 0.193 298.8)
XYZxyz(19.4839, 11.7135, 52.8536)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841C3 #8CC341
analogous
#414BC3 #7841C3 #B941C3
triadic
#7841C3 #C37841 #41C378
tetradic
#7841C3 #C3414B #8CC341 #41C3B9
square
#7841C3 #C3414B #8CC341 #41C3B9
split-complementary
#7841C3 #C3B941 #4BC341
monochromatic
#3F2169 #5B3097 #7841C3 #9970D2 #BA9EE0

Accessibility & contrast

On white

6.28
#7841C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7841C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841C3
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841C3#FFFFFF#000000##FFFFFF
##7841C31.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#005FC0
Tritanopia (blue-blind)
#665F7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7841c3;
/* rgb */ color: rgb(120, 65, 195);
/* oklch */ color: oklch(51.1% 0.193 298.8);
Tailwind
colors: {
  custom: {
    50: '#a579d6',
    500: '#7841c3',
    950: '#000000',
  },
}
SCSS
$custom: #7841c3;
$custom-light: #a579d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7841c3",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 195
  },
  "hsl": {
    "h": 265.385,
    "s": 52,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51122,
    "c": 0.19291,
    "h": 298.8
  },
  "luminance": 0.11714
}

Semantic roles & 50–950 ramp

primary
#7841C3
secondary
#B4CD93
accent
#DB4C9F
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7841C3

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

Preview Lab → · Contrast checker → · Palette generator →

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