#784F9D#784F9D

#784F9D is a mid, vivid violet. Relative luminance 0.120; OKLCH L 50.7% C 0.126 H 306.7°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#784F9D
RGBrgb(120, 79, 157)
HSLhsl(272, 33%, 46%)
HSVhsv(272, 50%, 62%)
CMYKcmyk(23.6%, 49.7%, 0%, 38.4%)
CIE-LABlab(41.25, 32.88, -36.10)
CIE-LCHlch(41.25, 48.83, 312.33°)
OKLaboklab(50.71% 0.0753 -0.101)
OKLCHoklch(50.71% 0.126 306.7)
XYZxyz(16.6263, 12.0195, 33.3359)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784F9D #749D4F
analogous
#514F9D #784F9D #9D4F9B
triadic
#784F9D #9D784F #4F9D78
tetradic
#784F9D #9D514F #749D4F #4F9B9D
square
#784F9D #9D514F #749D4F #4F9B9D
split-complementary
#784F9D #9B9D4F #4F9D51
monochromatic
#3A264C #593B74 #784F9D #9671B8 #B49ACC

Accessibility & contrast

On white

6.17
#784F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#784F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784F9D
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784F9D#FFFFFF#000000##FFFFFF
##784F9D1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A60A0
Deuteranopia (green-blind)
#45629B
Tritanopia (blue-blind)
#725C6E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784f9d;
/* rgb */ color: rgb(120, 79, 157);
/* oklch */ color: oklch(50.7% 0.126 306.7);
Tailwind
colors: {
  custom: {
    50: '#a181ba',
    500: '#784f9d',
    950: '#000000',
  },
}
SCSS
$custom: #784f9d;
$custom-light: #a181ba;
$custom-dark: #000000;
JSON
{
  "hex": "#784f9d",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 271.538,
    "s": 33.051,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50708,
    "c": 0.12603,
    "h": 306.7
  },
  "luminance": 0.12019
}

Semantic roles & 50–950 ramp

primary
#784F9D
secondary
#A3B98F
accent
#C95F91
background
#FAF8FB
surface
#F4EFF6
border
#CECAD0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #784F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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