#7834B9#7834B9

#7834B9 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.7% C 0.198 H 303.0°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#7834B9
RGBrgb(120, 52, 185)
HSLhsl(271, 56%, 46%)
HSVhsv(271, 72%, 73%)
CMYKcmyk(35.1%, 71.9%, 0%, 27.5%)
CIE-LABlab(37.76, 53.98, -58.34)
CIE-LCHlch(37.76, 79.48, 312.78°)
OKLaboklab(48.75% 0.1078 -0.1661)
OKLCHoklch(48.75% 0.198 303)
XYZxyz(17.7286, 9.9518, 46.8764)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7834B9 #75B934
analogous
#3634B9 #7834B9 #B934B8
triadic
#7834B9 #B97834 #34B978
tetradic
#7834B9 #B93634 #75B934 #34B8B9
square
#7834B9 #B93634 #75B934 #34B8B9
split-complementary
#7834B9 #B8B934 #34B936
monochromatic
#3A1959 #592789 #7834B9 #965AD1 #B589DE

Accessibility & contrast

On white

7.02
#7834B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7834B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7834B9
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7834B9#FFFFFF#000000##FFFFFF
##7834B91.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BD
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#6B5473
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7834b9;
/* rgb */ color: rgb(120, 52, 185);
/* oklch */ color: oklch(48.7% 0.198 303.0);
Tailwind
colors: {
  custom: {
    50: '#a471cf',
    500: '#7834b9',
    950: '#000000',
  },
}
SCSS
$custom: #7834b9;
$custom-light: #a471cf;
$custom-dark: #000000;
JSON
{
  "hex": "#7834b9",
  "rgb": {
    "r": 120,
    "g": 52,
    "b": 185
  },
  "hsl": {
    "h": 270.677,
    "s": 56.118,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48746,
    "c": 0.19805,
    "h": 303
  },
  "luminance": 0.09952
}

Semantic roles & 50–950 ramp

primary
#7834B9
secondary
#A4C881
accent
#DF4892
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7834B9

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

Preview Lab → · Contrast checker → · Palette generator →

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