#784BAB#784BAB

#784BAB is a mid, vivid violet. Relative luminance 0.120; OKLCH L 50.9% C 0.150 H 303.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#784BAB
RGBrgb(120, 75, 171)
HSLhsl(268, 39%, 48%)
HSVhsv(268, 56%, 67%)
CMYKcmyk(29.8%, 56.1%, 0%, 32.9%)
CIE-LABlab(41.16, 38.66, -44.57)
CIE-LCHlch(41.16, 59.00, 310.94°)
OKLaboklab(50.91% 0.082 -0.1258)
OKLCHoklch(50.91% 0.15 303.1)
XYZxyz(17.6108, 11.9655, 39.9020)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784BAB #7EAB4B
analogous
#4B4EAB #784BAB #A84BAB
triadic
#784BAB #AB784B #4BAB78
tetradic
#784BAB #AB4B4E #7EAB4B #4BABA8
square
#784BAB #AB4B4E #7EAB4B #4BABA8
split-complementary
#784BAB #ABA84B #4EAB4B
monochromatic
#3C2656 #5A3880 #784BAB #9772C1 #B69DD4

Accessibility & contrast

On white

6.19
#784BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#784BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784BAB
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784BAB#FFFFFF#000000##FFFFFF
##784BAB1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2660AE
Deuteranopia (green-blind)
#3661A9
Tritanopia (blue-blind)
#6F5E74
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784bab;
/* rgb */ color: rgb(120, 75, 171);
/* oklch */ color: oklch(50.9% 0.150 303.1);
Tailwind
colors: {
  custom: {
    50: '#a27fc4',
    500: '#784bab',
    950: '#000000',
  },
}
SCSS
$custom: #784bab;
$custom-light: #a27fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#784bab",
  "rgb": {
    "r": 120,
    "g": 75,
    "b": 171
  },
  "hsl": {
    "h": 268.125,
    "s": 39.024,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50905,
    "c": 0.15013,
    "h": 303.1
  },
  "luminance": 0.11965
}

Semantic roles & 50–950 ramp

primary
#784BAB
secondary
#AAC091
accent
#CF5998
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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