#784CAF#784CAF

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

Color values

HEX#784CAF
RGBrgb(120, 76, 175)
HSLhsl(267, 39%, 49%)
HSVhsv(267, 57%, 69%)
CMYKcmyk(31.4%, 56.6%, 0%, 31.4%)
CIE-LABlab(41.62, 39.11, -46.20)
CIE-LCHlch(41.62, 60.53, 310.25°)
OKLaboklab(51.32% 0.0808 -0.1305)
OKLCHoklch(51.32% 0.154 301.7)
XYZxyz(18.0662, 12.2570, 41.9632)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CAF #83AF4C
analogous
#4C52AF #784CAF #AA4CAF
triadic
#784CAF #AF784C #4CAF78
tetradic
#784CAF #AF4C52 #83AF4C #4CAFAA
square
#784CAF #AF4C52 #83AF4C #4CAFAA
split-complementary
#784CAF #AFAA4C #52AF4C
monochromatic
#3D275A #5B3984 #784CAF #9875C3 #B8A0D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##784CAF#FFFFFF#000000##FFFFFF
##784CAF1.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)
#2362B2
Deuteranopia (green-blind)
#3362AD
Tritanopia (blue-blind)
#6D6076
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #784caf;
/* rgb */ color: rgb(120, 76, 175);
/* oklch */ color: oklch(51.3% 0.154 301.7);
Tailwind
colors: {
  custom: {
    50: '#a280c7',
    500: '#784caf',
    950: '#000000',
  },
}
SCSS
$custom: #784caf;
$custom-light: #a280c7;
$custom-dark: #000000;
JSON
{
  "hex": "#784caf",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 175
  },
  "hsl": {
    "h": 266.667,
    "s": 39.442,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51323,
    "c": 0.15352,
    "h": 301.7
  },
  "luminance": 0.12257
}

Semantic roles & 50–950 ramp

primary
#784CAF
secondary
#AEC294
accent
#CF589B
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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