#7841B5#7841B5

#7841B5 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.1% C 0.177 H 302.2°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#7841B5
RGBrgb(120, 65, 181)
HSLhsl(268, 47%, 48%)
HSVhsv(268, 64%, 71%)
CMYKcmyk(33.7%, 64.1%, 0%, 29%)
CIE-LABlab(39.76, 46.63, -52.72)
CIE-LCHlch(39.76, 70.39, 311.49°)
OKLaboklab(50.09% 0.0943 -0.1497)
OKLCHoklch(50.09% 0.177 302.2)
XYZxyz(17.9746, 11.1098, 44.9046)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841B5 #7EB541
analogous
#4144B5 #7841B5 #B241B5
triadic
#7841B5 #B57841 #41B578
tetradic
#7841B5 #B54144 #7EB541 #41B5B2
square
#7841B5 #B54144 #7EB541 #41B5B2
split-complementary
#7841B5 #B5B241 #44B541
monochromatic
#3C215B #5A3188 #7841B5 #976AC9 #B697DA

Accessibility & contrast

On white

6.52
#7841B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7841B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841B5
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841B5#FFFFFF#000000##FFFFFF
##7841B51.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#185DB2
Tritanopia (blue-blind)
#6C5A75
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7841b5;
/* rgb */ color: rgb(120, 65, 181);
/* oklch */ color: oklch(50.1% 0.177 302.2);
Tailwind
colors: {
  custom: {
    50: '#a379cc',
    500: '#7841b5',
    950: '#000000',
  },
}
SCSS
$custom: #7841b5;
$custom-light: #a379cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7841b5",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 181
  },
  "hsl": {
    "h": 268.448,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50093,
    "c": 0.1769,
    "h": 302.2
  },
  "luminance": 0.1111
}

Semantic roles & 50–950 ramp

primary
#7841B5
secondary
#AAC58C
accent
#D75197
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7841B5

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

Preview Lab → · Contrast checker → · Palette generator →

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