#7834A2#7834A2

#7834A2 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.0% C 0.174 H 309.7°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7834A2
RGBrgb(120, 52, 162)
HSLhsl(277, 51%, 42%)
HSVhsv(277, 68%, 64%)
CMYKcmyk(25.9%, 67.9%, 0%, 36.5%)
CIE-LABlab(36.10, 48.59, -47.32)
CIE-LCHlch(36.10, 67.82, 315.75°)
OKLaboklab(47.04% 0.111 -0.1338)
OKLCHoklch(47.04% 0.174 309.7)
XYZxyz(15.4940, 9.0580, 35.1076)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7834A2 #5EA234
analogous
#4134A2 #7834A2 #A23495
triadic
#7834A2 #A27834 #34A278
tetradic
#7834A2 #A24134 #5EA234 #3495A2
square
#7834A2 #A24134 #5EA234 #3495A2
split-complementary
#7834A2 #95A234 #34A241
monochromatic
#331645 #562574 #7834A2 #984DC6 #B37CD5

Accessibility & contrast

On white

7.47
#7834A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7834A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7834A2
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7834A2#FFFFFF#000000##FFFFFF
##7834A21.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#2256A0
Tritanopia (blue-blind)
#724B67
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7834a2;
/* rgb */ color: rgb(120, 52, 162);
/* oklch */ color: oklch(47.0% 0.174 309.7);
Tailwind
colors: {
  custom: {
    50: '#a371be',
    500: '#7834a2',
    950: '#000000',
  },
}
SCSS
$custom: #7834a2;
$custom-light: #a371be;
$custom-dark: #000000;
JSON
{
  "hex": "#7834a2",
  "rgb": {
    "r": 120,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 277.091,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47037,
    "c": 0.17381,
    "h": 309.7
  },
  "luminance": 0.09058
}

Semantic roles & 50–950 ramp

primary
#7834A2
secondary
#90BE74
accent
#DB4D83
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#0F0812
muted
#7F7B81

Preview Lab

Preview with #7834A2

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

Preview Lab → · Contrast checker → · Palette generator →

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