#784BA2#784BA2

#784BA2 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.3% C 0.139 H 305.9°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#784BA2
RGBrgb(120, 75, 162)
HSLhsl(271, 37%, 46%)
HSVhsv(271, 54%, 64%)
CMYKcmyk(25.9%, 53.7%, 0%, 36.5%)
CIE-LABlab(40.63, 36.42, -40.07)
CIE-LCHlch(40.63, 54.14, 312.27°)
OKLaboklab(50.34% 0.0815 -0.1126)
OKLCHoklch(50.34% 0.139 305.9)
XYZxyz(16.7820, 11.6340, 35.5369)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784BA2 #75A24B
analogous
#4C4BA2 #784BA2 #A24BA1
triadic
#784BA2 #A2784B #4BA278
tetradic
#784BA2 #A24C4B #75A24B #4BA1A2
square
#784BA2 #A24C4B #75A24B #4BA1A2
split-complementary
#784BA2 #A1A24B #4BA24C
monochromatic
#3A244E #593878 #784BA2 #966EBC #B598CF

Accessibility & contrast

On white

6.31
#784BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #784BA2
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784BA2#FFFFFF#000000##FFFFFF
##784BA21.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5EA5
Deuteranopia (green-blind)
#3D60A0
Tritanopia (blue-blind)
#715B6F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #784ba2;
/* rgb */ color: rgb(120, 75, 162);
/* oklch */ color: oklch(50.3% 0.139 305.9);
Tailwind
colors: {
  custom: {
    50: '#a17fbe',
    500: '#784ba2',
    950: '#000000',
  },
}
SCSS
$custom: #784ba2;
$custom-light: #a17fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#784ba2",
  "rgb": {
    "r": 120,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 271.034,
    "s": 36.709,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5034,
    "c": 0.13899,
    "h": 305.9
  },
  "luminance": 0.11634
}

Semantic roles & 50–950 ramp

primary
#784BA2
secondary
#A4BC8D
accent
#CD5B92
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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