#7841A2#7841A2

#7841A2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.8% C 0.155 H 307.8°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7841A2
RGBrgb(120, 65, 162)
HSLhsl(274, 43%, 45%)
HSVhsv(274, 60%, 64%)
CMYKcmyk(25.9%, 59.9%, 0%, 36.5%)
CIE-LABlab(38.52, 41.97, -43.43)
CIE-LCHlch(38.52, 60.40, 314.02°)
OKLaboklab(48.79% 0.095 -0.1224)
OKLCHoklch(48.79% 0.155 307.8)
XYZxyz(16.1563, 10.3825, 35.3283)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7841A2 #6BA241
analogous
#4841A2 #7841A2 #A2419B
triadic
#7841A2 #A27841 #41A278
tetradic
#7841A2 #A24841 #6BA241 #419BA2
square
#7841A2 #A24841 #6BA241 #419BA2
split-complementary
#7841A2 #9BA241 #41A248
monochromatic
#371E4B #582F76 #7841A2 #9661BF #B38CD1

Accessibility & contrast

On white

6.83
#7841A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7841A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7841A2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7841A2#FFFFFF#000000##FFFFFF
##7841A21.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A59A5
Deuteranopia (green-blind)
#325BA0
Tritanopia (blue-blind)
#72546B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7841a2;
/* rgb */ color: rgb(120, 65, 162);
/* oklch */ color: oklch(48.8% 0.155 307.8);
Tailwind
colors: {
  custom: {
    50: '#a278be',
    500: '#7841a2',
    950: '#000000',
  },
}
SCSS
$custom: #7841a2;
$custom-light: #a278be;
$custom-dark: #000000;
JSON
{
  "hex": "#7841a2",
  "rgb": {
    "r": 120,
    "g": 65,
    "b": 162
  },
  "hsl": {
    "h": 274.021,
    "s": 42.731,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48792,
    "c": 0.15494,
    "h": 307.8
  },
  "luminance": 0.10382
}

Semantic roles & 50–950 ramp

primary
#7841A2
secondary
#9CBC83
accent
#D3558C
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #7841A2

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

Preview Lab → · Contrast checker → · Palette generator →

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