#7841C9#7841C9

#7841C9 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.200 H 297.4°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#7841C9
RGBrgb(120, 65, 201)
HSLhsl(264, 56%, 52%)
HSVhsv(264, 68%, 79%)
CMYKcmyk(40.3%, 67.7%, 0%, 21.2%)
CIE-LABlab(41.20, 51.71, -62.09)
CIE-LCHlch(41.20, 80.80, 309.79°)
OKLaboklab(51.58% 0.092 -0.1772)
OKLCHoklch(51.58% 0.2 297.4)
XYZxyz(20.1759, 11.9904, 56.4984)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841C9 #92C941
analogous
#414EC9 #7841C9 #BC41C9
triadic
#7841C9 #C97841 #41C978
tetradic
#7841C9 #C9414E #92C941 #41C9BC
square
#7841C9 #C9414E #92C941 #41C9BC
split-complementary
#7841C9 #C9BC41 #4EC941
monochromatic
#402070 #5B2D9F #7841C9 #9A71D7 #BCA0E4

Accessibility & contrast

On white

6.18
#7841C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7841C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841C9
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841C9#FFFFFF#000000##FFFFFF
##7841C91.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CD
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#646180
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7841c9;
/* rgb */ color: rgb(120, 65, 201);
/* oklch */ color: oklch(51.6% 0.200 297.4);
Tailwind
colors: {
  custom: {
    50: '#a579da',
    500: '#7841c9',
    950: '#000000',
  },
}
SCSS
$custom: #7841c9;
$custom-light: #a579da;
$custom-dark: #000000;
JSON
{
  "hex": "#7841c9",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 201
  },
  "hsl": {
    "h": 264.265,
    "s": 55.738,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5158,
    "c": 0.1997,
    "h": 297.4
  },
  "luminance": 0.11991
}

Semantic roles & 50–950 ramp

primary
#7841C9
secondary
#B9D195
accent
#DF49A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7841C9

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

Preview Lab → · Contrast checker → · Palette generator →

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