#7834B2#7834B2

#7834B2 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.2% C 0.191 H 304.9°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7834B2
RGBrgb(120, 52, 178)
HSLhsl(272, 55%, 45%)
HSVhsv(272, 71%, 70%)
CMYKcmyk(32.6%, 70.8%, 0%, 30.2%)
CIE-LABlab(37.23, 52.31, -55.05)
CIE-LCHlch(37.23, 75.94, 313.54°)
OKLaboklab(48.21% 0.109 -0.1565)
OKLCHoklch(48.21% 0.191 304.9)
XYZxyz(17.0078, 9.6635, 43.0801)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7834B2 #6EB234
analogous
#3934B2 #7834B2 #B234AD
triadic
#7834B2 #B27834 #34B278
tetradic
#7834B2 #B23934 #6EB234 #34ADB2
square
#7834B2 #B23934 #6EB234 #34ADB2
split-complementary
#7834B2 #ADB234 #34B239
monochromatic
#381853 #582683 #7834B2 #9656CE #B485DB

Accessibility & contrast

On white

7.16
#7834B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7834B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7834B2
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7834B2#FFFFFF#000000##FFFFFF
##7834B21.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#6D516F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7834b2;
/* rgb */ color: rgb(120, 52, 178);
/* oklch */ color: oklch(48.2% 0.191 304.9);
Tailwind
colors: {
  custom: {
    50: '#a471ca',
    500: '#7834b2',
    950: '#000000',
  },
}
SCSS
$custom: #7834b2;
$custom-light: #a471ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7834b2",
  "rgb": {
    "r": 120,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 272.381,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48209,
    "c": 0.19068,
    "h": 304.9
  },
  "luminance": 0.09663
}

Semantic roles & 50–950 ramp

primary
#7834B2
secondary
#9EC57D
accent
#DE4A8E
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7834B2

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

Preview Lab → · Contrast checker → · Palette generator →

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