#784F97#784F97

#784F97 is a mid, moderate violet. Relative luminance 0.118; OKLCH L 50.4% C 0.118 H 309.0°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#784F97
RGBrgb(120, 79, 151)
HSLhsl(274, 31%, 45%)
HSVhsv(274, 48%, 59%)
CMYKcmyk(20.5%, 47.7%, 0%, 40.8%)
CIE-LABlab(40.93, 31.42, -33.00)
CIE-LCHlch(40.93, 45.57, 313.60°)
OKLaboklab(50.37% 0.0745 -0.092)
OKLCHoklch(50.37% 0.118 309)
XYZxyz(16.1266, 11.8196, 30.7040)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784F97 #6E974F
analogous
#544F97 #784F97 #974F92
triadic
#784F97 #97784F #4F9778
tetradic
#784F97 #97544F #6E974F #4F9297
square
#784F97 #97544F #6E974F #4F9297
split-complementary
#784F97 #92974F #4F9754
monochromatic
#382547 #583A6F #784F97 #966FB4 #B498C9

Accessibility & contrast

On white

6.24
#784F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#784F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784F97
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784F97#FFFFFF#000000##FFFFFF
##784F971.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E5F9A
Deuteranopia (green-blind)
#496195
Tritanopia (blue-blind)
#745B6C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #784f97;
/* rgb */ color: rgb(120, 79, 151);
/* oklch */ color: oklch(50.4% 0.118 309.0);
Tailwind
colors: {
  custom: {
    50: '#a081b6',
    500: '#784f97',
    950: '#000000',
  },
}
SCSS
$custom: #784f97;
$custom-light: #a081b6;
$custom-dark: #000000;
JSON
{
  "hex": "#784f97",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 274.167,
    "s": 31.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50366,
    "c": 0.11843,
    "h": 309
  },
  "luminance": 0.11819
}

Semantic roles & 50–950 ramp

primary
#784F97
secondary
#9EB68C
accent
#C7608D
background
#FAF7FB
surface
#F3EEF6
border
#CDC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #784F97

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

Preview Lab → · Contrast checker → · Palette generator →

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