#7841AF#7841AF

#7841AF is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.7% C 0.170 H 303.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#7841AF
RGBrgb(120, 65, 175)
HSLhsl(270, 46%, 47%)
HSVhsv(270, 63%, 69%)
CMYKcmyk(31.4%, 62.9%, 0%, 31.4%)
CIE-LABlab(39.36, 45.14, -49.83)
CIE-LCHlch(39.36, 67.24, 312.17°)
OKLaboklab(49.67% 0.0947 -0.1412)
OKLCHoklch(49.67% 0.17 303.8)
XYZxyz(17.3721, 10.8689, 41.7318)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841AF #78AF41
analogous
#4141AF #7841AF #AF41AF
triadic
#7841AF #AF7841 #41AF78
tetradic
#7841AF #AF4141 #78AF41 #41AFAF
square
#7841AF #AF4141 #78AF41 #41AFAF
split-complementary
#7841AF #AFAF41 #41AF41
monochromatic
#3B2056 #593082 #7841AF #9767C6 #B593D7

Accessibility & contrast

On white

6.62
#7841AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#7841AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841AF
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841AF#FFFFFF#000000##FFFFFF
##7841AF1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#235DAD
Tritanopia (blue-blind)
#6E5872
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7841af;
/* rgb */ color: rgb(120, 65, 175);
/* oklch */ color: oklch(49.7% 0.170 303.8);
Tailwind
colors: {
  custom: {
    50: '#a379c7',
    500: '#7841af',
    950: '#000000',
  },
}
SCSS
$custom: #7841af;
$custom-light: #a379c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7841af",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 175
  },
  "hsl": {
    "h": 270,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4967,
    "c": 0.16998,
    "h": 303.8
  },
  "luminance": 0.10869
}

Semantic roles & 50–950 ramp

primary
#7841AF
secondary
#A6C289
accent
#D55294
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7841AF

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

Preview Lab → · Contrast checker → · Palette generator →

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