#784D9B#784D9B

#784D9B is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.3% C 0.127 H 307.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#784D9B
RGBrgb(120, 77, 155)
HSLhsl(273, 34%, 45%)
HSVhsv(273, 50%, 61%)
CMYKcmyk(22.6%, 50.3%, 0%, 39.2%)
CIE-LABlab(40.68, 33.55, -35.79)
CIE-LCHlch(40.68, 49.06, 313.15°)
OKLaboklab(50.25% 0.078 -0.1001)
OKLCHoklch(50.25% 0.127 307.9)
XYZxyz(16.3148, 11.6676, 32.3966)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784D9B #709B4D
analogous
#514D9B #784D9B #9B4D97
triadic
#784D9B #9B784D #4D9B78
tetradic
#784D9B #9B514D #709B4D #4D979B
square
#784D9B #9B514D #709B4D #4D979B
split-complementary
#784D9B #979B4D #4D9B51
monochromatic
#392449 #583972 #784D9B #966EB7 #B497CB

Accessibility & contrast

On white

6.30
#784D9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#784D9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784D9B
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784D9B#FFFFFF#000000##FFFFFF
##784D9B1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385E9E
Deuteranopia (green-blind)
#446099
Tritanopia (blue-blind)
#735A6D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #784d9b;
/* rgb */ color: rgb(120, 77, 155);
/* oklch */ color: oklch(50.3% 0.127 307.9);
Tailwind
colors: {
  custom: {
    50: '#a180b9',
    500: '#784d9b',
    950: '#000000',
  },
}
SCSS
$custom: #784d9b;
$custom-light: #a180b9;
$custom-dark: #000000;
JSON
{
  "hex": "#784d9b",
  "rgb": {
    "r": 120,
    "g": 77,
    "b": 155
  },
  "hsl": {
    "h": 273.077,
    "s": 33.621,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50253,
    "c": 0.12693,
    "h": 307.9
  },
  "luminance": 0.11667
}

Semantic roles & 50–950 ramp

primary
#784D9B
secondary
#A0B88C
accent
#CA5E8E
background
#FAF7FB
surface
#F3EEF6
border
#CDC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #784D9B

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

Preview Lab → · Contrast checker → · Palette generator →

#784D9B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva