#784E97#784E97

#784E97 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.2% C 0.120 H 309.2°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#784E97
RGBrgb(120, 78, 151)
HSLhsl(275, 32%, 45%)
HSVhsv(275, 48%, 59%)
CMYKcmyk(20.5%, 48.3%, 0%, 40.8%)
CIE-LABlab(40.70, 32.01, -33.36)
CIE-LCHlch(40.70, 46.24, 313.81°)
OKLaboklab(50.19% 0.076 -0.0931)
OKLCHoklch(50.19% 0.12 309.2)
XYZxyz(16.0550, 11.6764, 30.6802)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784E97 #6D974E
analogous
#544E97 #784E97 #974E91
triadic
#784E97 #97784E #4E9778
tetradic
#784E97 #97544E #6D974E #4E9197
square
#784E97 #97544E #6D974E #4E9197
split-complementary
#784E97 #91974E #4E9754
monochromatic
#382446 #58396F #784E97 #966EB4 #B496C9

Accessibility & contrast

On white

6.30
#784E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #784E97
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784E97#FFFFFF#000000##FFFFFF
##784E971.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C5E9A
Deuteranopia (green-blind)
#486195
Tritanopia (blue-blind)
#745A6B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #784e97;
/* rgb */ color: rgb(120, 78, 151);
/* oklch */ color: oklch(50.2% 0.120 309.2);
Tailwind
colors: {
  custom: {
    50: '#a181b6',
    500: '#784e97',
    950: '#000000',
  },
}
SCSS
$custom: #784e97;
$custom-light: #a181b6;
$custom-dark: #000000;
JSON
{
  "hex": "#784e97",
  "rgb": {
    "r": 120,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 274.521,
    "s": 31.878,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50194,
    "c": 0.12018,
    "h": 309.2
  },
  "luminance": 0.11676
}

Semantic roles & 50–950 ramp

primary
#784E97
secondary
#9DB68B
accent
#C8608C
background
#FAF7FB
surface
#F3EEF6
border
#CDC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #784E97

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

Preview Lab → · Contrast checker → · Palette generator →

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