#784DA2#784DA2

#784DA2 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 50.7% C 0.136 H 305.4°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#784DA2
RGBrgb(120, 77, 162)
HSLhsl(270, 36%, 47%)
HSVhsv(270, 52%, 64%)
CMYKcmyk(25.9%, 52.5%, 0%, 36.5%)
CIE-LABlab(41.07, 35.27, -39.36)
CIE-LCHlch(41.07, 52.85, 311.86°)
OKLaboklab(50.67% 0.0787 -0.1105)
OKLCHoklch(50.67% 0.136 305.4)
XYZxyz(16.9198, 11.9096, 35.5828)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784DA2 #77A24D
analogous
#4E4DA2 #784DA2 #A24DA2
triadic
#784DA2 #A2784D #4DA278
tetradic
#784DA2 #A24E4D #77A24D #4DA2A2
square
#784DA2 #A24E4D #77A24D #4DA2A2
split-complementary
#784DA2 #A2A24D #4DA24E
monochromatic
#3B264F #593979 #784DA2 #9771BB #B59ACF

Accessibility & contrast

On white

6.21
#784DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#784DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784DA2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784DA2#FFFFFF#000000##FFFFFF
##784DA21.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3360A5
Deuteranopia (green-blind)
#4061A0
Tritanopia (blue-blind)
#715C70
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784da2;
/* rgb */ color: rgb(120, 77, 162);
/* oklch */ color: oklch(50.7% 0.136 305.4);
Tailwind
colors: {
  custom: {
    50: '#a180be',
    500: '#784da2',
    950: '#000000',
  },
}
SCSS
$custom: #784da2;
$custom-light: #a180be;
$custom-dark: #000000;
JSON
{
  "hex": "#784da2",
  "rgb": {
    "r": 120,
    "g": 77,
    "b": 162
  },
  "hsl": {
    "h": 270.353,
    "s": 35.565,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50668,
    "c": 0.13569,
    "h": 305.4
  },
  "luminance": 0.11909
}

Semantic roles & 50–950 ramp

primary
#784DA2
secondary
#A5BC8F
accent
#CC5C93
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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