#784EA8#784EA8

#784EA8 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.2% C 0.142 H 303.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#784EA8
RGBrgb(120, 78, 168)
HSLhsl(268, 37%, 48%)
HSVhsv(268, 54%, 66%)
CMYKcmyk(28.6%, 53.6%, 0%, 34.1%)
CIE-LABlab(41.64, 36.19, -42.02)
CIE-LCHlch(41.64, 55.46, 310.74°)
OKLaboklab(51.2% 0.0778 -0.1183)
OKLCHoklch(51.2% 0.142 303.3)
XYZxyz(17.5364, 12.2690, 38.4825)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784EA8 #7EA84E
analogous
#4E51A8 #784EA8 #A54EA8
triadic
#784EA8 #A8784E #4EA878
tetradic
#784EA8 #A84E51 #7EA84E #4EA8A5
square
#784EA8 #A84E51 #7EA84E #4EA8A5
split-complementary
#784EA8 #A8A54E #51A84E
monochromatic
#3C2754 #5A3B7E #784EA8 #9775BF #B69ED2

Accessibility & contrast

On white

6.08
#784EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#784EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784EA8
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784EA8#FFFFFF#000000##FFFFFF
##784EA81.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F61AB
Deuteranopia (green-blind)
#3C62A6
Tritanopia (blue-blind)
#6F5F73
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #784ea8;
/* rgb */ color: rgb(120, 78, 168);
/* oklch */ color: oklch(51.2% 0.142 303.3);
Tailwind
colors: {
  custom: {
    50: '#a281c2',
    500: '#784ea8',
    950: '#000000',
  },
}
SCSS
$custom: #784ea8;
$custom-light: #a281c2;
$custom-dark: #000000;
JSON
{
  "hex": "#784ea8",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 168
  },
  "hsl": {
    "h": 268,
    "s": 36.585,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51201,
    "c": 0.1416,
    "h": 303.3
  },
  "luminance": 0.12269
}

Semantic roles & 50–950 ramp

primary
#784EA8
secondary
#AABF93
accent
#CD5B98
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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