#784EA1#784EA1

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

Color values

HEX#784EA1
RGBrgb(120, 78, 161)
HSLhsl(270, 35%, 47%)
HSVhsv(270, 52%, 63%)
CMYKcmyk(25.5%, 51.6%, 0%, 36.9%)
CIE-LABlab(41.24, 34.44, -38.50)
CIE-LCHlch(41.24, 51.66, 311.82°)
OKLaboklab(50.78% 0.0772 -0.108)
OKLCHoklch(50.78% 0.133 305.6)
XYZxyz(16.9018, 12.0152, 35.1401)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EA1 #77A14E
analogous
#4E4EA1 #784EA1 #A14EA1
triadic
#784EA1 #A1784E #4EA178
tetradic
#784EA1 #A14E4E #77A14E #4EA1A1
square
#784EA1 #A14E4E #77A14E #4EA1A1
split-complementary
#784EA1 #A1A14E #4EA14E
monochromatic
#3B264F #593A78 #784EA1 #9772BB #B59BCF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##784EA1#FFFFFF#000000##FFFFFF
##784EA11.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)
#3560A4
Deuteranopia (green-blind)
#41619F
Tritanopia (blue-blind)
#715D70
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784ea1;
/* rgb */ color: rgb(120, 78, 161);
/* oklch */ color: oklch(50.8% 0.133 305.6);
Tailwind
colors: {
  custom: {
    50: '#a181bd',
    500: '#784ea1',
    950: '#000000',
  },
}
SCSS
$custom: #784ea1;
$custom-light: #a181bd;
$custom-dark: #000000;
JSON
{
  "hex": "#784ea1",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 161
  },
  "hsl": {
    "h": 270.361,
    "s": 34.728,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50775,
    "c": 0.13278,
    "h": 305.6
  },
  "luminance": 0.12015
}

Semantic roles & 50–950 ramp

primary
#784EA1
secondary
#A5BB90
accent
#CB5D93
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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