#7841D8#7841D8

#7841D8 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.217 H 294.4°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7841D8
RGBrgb(120, 65, 216)
HSLhsl(262, 66%, 55%)
HSVhsv(262, 70%, 85%)
CMYKcmyk(44.4%, 69.9%, 0%, 15.3%)
CIE-LABlab(42.35, 55.59, -68.86)
CIE-LCHlch(42.35, 88.50, 308.91°)
OKLaboklab(52.76% 0.0896 -0.1971)
OKLCHoklch(52.76% 0.217 294.4)
XYZxyz(22.0273, 12.7309, 66.2492)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841D8 #A1D841
analogous
#4156D8 #7841D8 #C341D8
triadic
#7841D8 #D87841 #41D878
tetradic
#7841D8 #D84156 #A1D841 #41D8C3
square
#7841D8 #D84156 #A1D841 #41D8C3
split-complementary
#7841D8 #D8C341 #56D841
monochromatic
#411B84 #5A25B6 #7841D8 #9C74E2 #C0A7ED

Accessibility & contrast

On white

5.92
#7841D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7841D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841D8
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841D8#FFFFFF#000000##FFFFFF
##7841D81.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DC
Deuteranopia (green-blind)
#0061D5
Tritanopia (blue-blind)
#5D6788
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7841d8;
/* rgb */ color: rgb(120, 65, 216);
/* oklch */ color: oklch(52.8% 0.217 294.4);
Tailwind
colors: {
  custom: {
    50: '#a77ae5',
    500: '#7841d8',
    950: '#000000',
  },
}
SCSS
$custom: #7841d8;
$custom-light: #a77ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#7841d8",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 216
  },
  "hsl": {
    "h": 261.854,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.52764,
    "c": 0.21653,
    "h": 294.4
  },
  "luminance": 0.12732
}

Semantic roles & 50–950 ramp

primary
#7841D8
secondary
#C3DA9B
accent
#E93FAB
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #7841D8

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

Preview Lab → · Contrast checker → · Palette generator →

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