#784AB2#784AB2

#784AB2 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.2% C 0.160 H 301.3°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#784AB2
RGBrgb(120, 74, 178)
HSLhsl(267, 41%, 49%)
HSVhsv(267, 58%, 70%)
CMYKcmyk(32.6%, 58.4%, 0%, 30.2%)
CIE-LABlab(41.38, 41.00, -48.35)
CIE-LCHlch(41.38, 63.40, 310.30°)
OKLaboklab(51.21% 0.0834 -0.1369)
OKLCHoklch(51.21% 0.16 301.3)
XYZxyz(18.2285, 12.1049, 43.4870)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784AB2 #84B24A
analogous
#4A50B2 #784AB2 #AC4AB2
triadic
#784AB2 #B2784A #4AB278
tetradic
#784AB2 #B24A50 #84B24A #4AB2AC
square
#784AB2 #B24A50 #84B24A #4AB2AC
split-complementary
#784AB2 #B2AC4A #50B24A
monochromatic
#3E265C #5B3887 #784AB2 #9874C5 #B89FD7

Accessibility & contrast

On white

6.14
#784AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#784AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784AB2
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784AB2#FFFFFF#000000##FFFFFF
##784AB21.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1961B5
Deuteranopia (green-blind)
#2D61B0
Tritanopia (blue-blind)
#6C5F77
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #784ab2;
/* rgb */ color: rgb(120, 74, 178);
/* oklch */ color: oklch(51.2% 0.160 301.3);
Tailwind
colors: {
  custom: {
    50: '#a37eca',
    500: '#784ab2',
    950: '#000000',
  },
}
SCSS
$custom: #784ab2;
$custom-light: #a37eca;
$custom-dark: #000000;
JSON
{
  "hex": "#784ab2",
  "rgb": {
    "r": 120,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 266.538,
    "s": 41.27,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51207,
    "c": 0.16027,
    "h": 301.3
  },
  "luminance": 0.12105
}

Semantic roles & 50–950 ramp

primary
#784AB2
secondary
#AFC494
accent
#D1579B
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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