#782797#782797

#782797 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.8% C 0.179 H 314.8°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#782797
RGBrgb(120, 39, 151)
HSLhsl(283, 59%, 37%)
HSVhsv(283, 74%, 59%)
CMYKcmyk(20.5%, 74.2%, 0%, 40.8%)
CIE-LABlab(33.31, 51.89, -45.15)
CIE-LCHlch(33.31, 68.78, 318.97°)
OKLaboklab(44.8% 0.1263 -0.1273)
OKLCHoklch(44.8% 0.179 314.8)
XYZxyz(14.0562, 7.6790, 30.0139)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782797 #469727
analogous
#402797 #782797 #97277E
triadic
#782797 #977827 #279778
tetradic
#782797 #974027 #469727 #277E97
square
#782797 #974027 #469727 #277E97
split-complementary
#782797 #7E9727 #279740
monochromatic
#2B0E36 #511A66 #782797 #9F34C8 #B662D6

Accessibility & contrast

On white

8.28
#782797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#782797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782797
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782797#FFFFFF#000000##FFFFFF
##7827971.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#225095
Tritanopia (blue-blind)
#753F5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #782797;
/* rgb */ color: rgb(120, 39, 151);
/* oklch */ color: oklch(44.8% 0.179 314.8);
Tailwind
colors: {
  custom: {
    50: '#a369b6',
    500: '#782797',
    950: '#000000',
  },
}
SCSS
$custom: #782797;
$custom-light: #a369b6;
$custom-dark: #000000;
JSON
{
  "hex": "#782797",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 283.393,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44804,
    "c": 0.1793,
    "h": 314.8
  },
  "luminance": 0.07678
}

Semantic roles & 50–950 ramp

primary
#782797
secondary
#78BC5E
accent
#E24671
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #782797

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

Preview Lab → · Contrast checker → · Palette generator →

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