#784BA5#784BA5

#784BA5 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.5% C 0.143 H 304.9°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#784BA5
RGBrgb(120, 75, 165)
HSLhsl(270, 38%, 47%)
HSVhsv(270, 55%, 65%)
CMYKcmyk(27.3%, 54.5%, 0%, 35.3%)
CIE-LABlab(40.80, 37.16, -41.58)
CIE-LCHlch(40.80, 55.76, 311.79°)
OKLaboklab(50.53% 0.0817 -0.117)
OKLCHoklch(50.53% 0.143 304.9)
XYZxyz(17.0519, 11.7419, 36.9581)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784BA5 #78A54B
analogous
#4B4BA5 #784BA5 #A54BA5
triadic
#784BA5 #A5784B #4BA578
tetradic
#784BA5 #A54B4B #78A54B #4BA5A5
square
#784BA5 #A54B4B #78A54B #4BA5A5
split-complementary
#784BA5 #A5A54B #4BA54B
monochromatic
#3B2551 #59387B #784BA5 #976FBE #B59AD1

Accessibility & contrast

On white

6.27
#784BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#784BA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784BA5
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784BA5#FFFFFF#000000##FFFFFF
##784BA51.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5FA8
Deuteranopia (green-blind)
#3B60A3
Tritanopia (blue-blind)
#705C71
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #784ba5;
/* rgb */ color: rgb(120, 75, 165);
/* oklch */ color: oklch(50.5% 0.143 304.9);
Tailwind
colors: {
  custom: {
    50: '#a27fc0',
    500: '#784ba5',
    950: '#000000',
  },
}
SCSS
$custom: #784ba5;
$custom-light: #a27fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#784ba5",
  "rgb": {
    "r": 120,
    "g": 75,
    "b": 165
  },
  "hsl": {
    "h": 270,
    "s": 37.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50526,
    "c": 0.1427,
    "h": 304.9
  },
  "luminance": 0.11742
}

Semantic roles & 50–950 ramp

primary
#784BA5
secondary
#A6BD8F
accent
#CD5A94
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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