#784DAF#784DAF

#784DAF is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.5% C 0.152 H 301.5°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#784DAF
RGBrgb(120, 77, 175)
HSLhsl(266, 39%, 49%)
HSVhsv(266, 56%, 69%)
CMYKcmyk(31.4%, 56%, 0%, 31.4%)
CIE-LABlab(41.84, 38.55, -45.85)
CIE-LCHlch(41.84, 59.90, 310.05°)
OKLaboklab(51.48% 0.0795 -0.1295)
OKLCHoklch(51.48% 0.152 301.5)
XYZxyz(18.1357, 12.3959, 41.9863)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784DAF #84AF4D
analogous
#4D53AF #784DAF #A94DAF
triadic
#784DAF #AF784D #4DAF78
tetradic
#784DAF #AF4D53 #84AF4D #4DAFA9
square
#784DAF #AF4D53 #84AF4D #4DAFA9
split-complementary
#784DAF #AFA94D #53AF4D
monochromatic
#3E285A #5B3A85 #784DAF #9876C3 #B8A1D6

Accessibility & contrast

On white

6.04
#784DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#784DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784DAF
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784DAF#FFFFFF#000000##FFFFFF
##784DAF1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2562B2
Deuteranopia (green-blind)
#3562AD
Tritanopia (blue-blind)
#6D6076
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784daf;
/* rgb */ color: rgb(120, 77, 175);
/* oklch */ color: oklch(51.5% 0.152 301.5);
Tailwind
colors: {
  custom: {
    50: '#a280c7',
    500: '#784daf',
    950: '#000000',
  },
}
SCSS
$custom: #784daf;
$custom-light: #a280c7;
$custom-dark: #000000;
JSON
{
  "hex": "#784daf",
  "rgb": {
    "r": 120,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 266.327,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51482,
    "c": 0.15197,
    "h": 301.5
  },
  "luminance": 0.12396
}

Semantic roles & 50–950 ramp

primary
#784DAF
secondary
#AFC395
accent
#CF599B
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #784DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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