#784797#784797

#784797 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.0% C 0.132 H 310.7°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#784797
RGBrgb(120, 71, 151)
HSLhsl(277, 36%, 44%)
HSVhsv(277, 53%, 59%)
CMYKcmyk(20.5%, 53%, 0%, 40.8%)
CIE-LABlab(39.13, 36.04, -35.84)
CIE-LCHlch(39.13, 50.83, 315.15°)
OKLaboklab(49.03% 0.0862 -0.1003)
OKLCHoklch(49.03% 0.132 310.7)
XYZxyz(15.5839, 10.7342, 30.5231)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784797 #669747
analogous
#504797 #784797 #97478E
triadic
#784797 #977847 #479778
tetradic
#784797 #975047 #669747 #478E97
square
#784797 #975047 #669747 #478E97
split-complementary
#784797 #8E9747 #479750
monochromatic
#362044 #57336D #784797 #9765B6 #B38ECA

Accessibility & contrast

On white

6.67
#784797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#784797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784797
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784797#FFFFFF#000000##FFFFFF
##7847971.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325A9A
Deuteranopia (green-blind)
#415D95
Tritanopia (blue-blind)
#745468
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #784797;
/* rgb */ color: rgb(120, 71, 151);
/* oklch */ color: oklch(49.0% 0.132 310.7);
Tailwind
colors: {
  custom: {
    50: '#a17cb6',
    500: '#784797',
    950: '#000000',
  },
}
SCSS
$custom: #784797;
$custom-light: #a17cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#784797",
  "rgb": {
    "r": 120,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 276.75,
    "s": 36.036,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4903,
    "c": 0.13224,
    "h": 310.7
  },
  "luminance": 0.10734
}

Semantic roles & 50–950 ramp

primary
#784797
secondary
#97B684
accent
#CC5C87
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0911
muted
#7F7B80

Preview Lab

Preview with #784797

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

Preview Lab → · Contrast checker → · Palette generator →

#784797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva