#7841CF#7841CF

#7841CF is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.0% C 0.206 H 296.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7841CF
RGBrgb(120, 65, 207)
HSLhsl(263, 60%, 53%)
HSVhsv(263, 69%, 81%)
CMYKcmyk(42%, 68.6%, 0%, 18.8%)
CIE-LABlab(41.65, 53.26, -64.83)
CIE-LCHlch(41.65, 83.90, 309.40°)
OKLaboklab(52.05% 0.0911 -0.1853)
OKLCHoklch(52.05% 0.206 296.2)
XYZxyz(20.8955, 12.2782, 60.2884)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841CF #98CF41
analogous
#4151CF #7841CF #BF41CF
triadic
#7841CF #CF7841 #41CF78
tetradic
#7841CF #CF4151 #98CF41 #41CFBF
square
#7841CF #CF4151 #98CF41 #41CFBF
split-complementary
#7841CF #CFBF41 #51CF41
monochromatic
#411E77 #5B2BA8 #7841CF #9B72DB #BDA3E8

Accessibility & contrast

On white

6.08
#7841CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7841CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841CF
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841CF#FFFFFF#000000##FFFFFF
##7841CF1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#616483
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7841cf;
/* rgb */ color: rgb(120, 65, 207);
/* oklch */ color: oklch(52.0% 0.206 296.2);
Tailwind
colors: {
  custom: {
    50: '#a67adf',
    500: '#7841cf',
    950: '#000000',
  },
}
SCSS
$custom: #7841cf;
$custom-light: #a67adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7841cf",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 207
  },
  "hsl": {
    "h": 263.239,
    "s": 59.664,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52047,
    "c": 0.20647,
    "h": 296.2
  },
  "luminance": 0.12279
}

Semantic roles & 50–950 ramp

primary
#7841CF
secondary
#BDD497
accent
#E345A6
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7841CF

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

Preview Lab → · Contrast checker → · Palette generator →

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