#784AA8#784AA8

#784AA8 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.6% C 0.148 H 304.2°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#784AA8
RGBrgb(120, 74, 168)
HSLhsl(269, 39%, 47%)
HSVhsv(269, 56%, 66%)
CMYKcmyk(28.6%, 56%, 0%, 34.1%)
CIE-LABlab(40.76, 38.47, -43.42)
CIE-LCHlch(40.76, 58.02, 311.54°)
OKLaboklab(50.56% 0.0832 -0.1224)
OKLCHoklch(50.56% 0.148 304.2)
XYZxyz(17.2608, 11.7178, 38.3906)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784AA8 #7AA84A
analogous
#4A4BA8 #784AA8 #A74AA8
triadic
#784AA8 #A8784A #4AA878
tetradic
#784AA8 #A84A4B #7AA84A #4AA8A7
square
#784AA8 #A84A4B #7AA84A #4AA8A7
split-complementary
#784AA8 #A8A74A #4BA84A
monochromatic
#3B2553 #5A377E #784AA8 #976FC0 #B69AD2

Accessibility & contrast

On white

6.28
#784AA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#784AA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784AA8
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784AA8#FFFFFF#000000##FFFFFF
##784AA81.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275FAB
Deuteranopia (green-blind)
#3760A6
Tritanopia (blue-blind)
#705C72
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #784aa8;
/* rgb */ color: rgb(120, 74, 168);
/* oklch */ color: oklch(50.6% 0.148 304.2);
Tailwind
colors: {
  custom: {
    50: '#a27ec2',
    500: '#784aa8',
    950: '#000000',
  },
}
SCSS
$custom: #784aa8;
$custom-light: #a27ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#784aa8",
  "rgb": {
    "r": 120,
    "g": 74,
    "b": 168
  },
  "hsl": {
    "h": 269.362,
    "s": 38.843,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50555,
    "c": 0.14801,
    "h": 304.2
  },
  "luminance": 0.11718
}

Semantic roles & 50–950 ramp

primary
#784AA8
secondary
#A7BF8F
accent
#CF5995
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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