#784AAF#784AAF

#784AAF is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.0% C 0.157 H 302.2°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#784AAF
RGBrgb(120, 74, 175)
HSLhsl(267, 41%, 49%)
HSVhsv(267, 58%, 69%)
CMYKcmyk(31.4%, 57.7%, 0%, 31.4%)
CIE-LABlab(41.19, 40.24, -46.88)
CIE-LCHlch(41.19, 61.78, 310.64°)
OKLaboklab(51.01% 0.0834 -0.1326)
OKLCHoklch(51.01% 0.157 302.2)
XYZxyz(17.9306, 11.9857, 41.9180)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784AAF #81AF4A
analogous
#4A4FAF #784AAF #AB4AAF
triadic
#784AAF #AF784A #4AAF78
tetradic
#784AAF #AF4A4F #81AF4A #4AAFAB
square
#784AAF #AF4A4F #81AF4A #4AAFAB
split-complementary
#784AAF #AFAB4A #4FAF4A
monochromatic
#3D2659 #5B3884 #784AAF #9773C4 #B79ED6

Accessibility & contrast

On white

6.18
#784AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #784AAF
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784AAF#FFFFFF#000000##FFFFFF
##784AAF1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E60B2
Deuteranopia (green-blind)
#3161AD
Tritanopia (blue-blind)
#6D5E75
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784aaf;
/* rgb */ color: rgb(120, 74, 175);
/* oklch */ color: oklch(51.0% 0.157 302.2);
Tailwind
colors: {
  custom: {
    50: '#a27ec7',
    500: '#784aaf',
    950: '#000000',
  },
}
SCSS
$custom: #784aaf;
$custom-light: #a27ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#784aaf",
  "rgb": {
    "r": 120,
    "g": 74,
    "b": 175
  },
  "hsl": {
    "h": 267.327,
    "s": 40.562,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51008,
    "c": 0.1566,
    "h": 302.2
  },
  "luminance": 0.11986
}

Semantic roles & 50–950 ramp

primary
#784AAF
secondary
#ADC292
accent
#D05799
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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