#793797#793797

#793797 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.8% C 0.158 H 313.7°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#793797
RGBrgb(121, 55, 151)
HSLhsl(281, 47%, 40%)
HSVhsv(281, 64%, 59%)
CMYKcmyk(19.9%, 63.6%, 0%, 40.8%)
CIE-LABlab(36.05, 44.88, -40.74)
CIE-LCHlch(36.05, 60.62, 317.76°)
OKLaboklab(46.8% 0.1093 -0.1145)
OKLCHoklch(46.8% 0.158 313.7)
XYZxyz(14.8363, 9.0321, 30.2340)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793797 #559737
analogous
#493797 #793797 #973785
triadic
#793797 #977937 #379779
tetradic
#793797 #974937 #559737 #378597
square
#793797 #974937 #559737 #378597
split-complementary
#793797 #859737 #379749
monochromatic
#31163D #55276A #793797 #9B4DBE #B47ACF

Accessibility & contrast

On white

7.48
#793797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#793797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #793797
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793797#FFFFFF#000000##FFFFFF
##7937971.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12519A
Deuteranopia (green-blind)
#335695
Tritanopia (blue-blind)
#764962
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #793797;
/* rgb */ color: rgb(121, 55, 151);
/* oklch */ color: oklch(46.8% 0.158 313.7);
Tailwind
colors: {
  custom: {
    50: '#a372b6',
    500: '#793797',
    950: '#000000',
  },
}
SCSS
$custom: #793797;
$custom-light: #a372b6;
$custom-dark: #000000;
JSON
{
  "hex": "#793797",
  "rgb": {
    "r": 121,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 281.25,
    "s": 46.602,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46801,
    "c": 0.15824,
    "h": 313.7
  },
  "luminance": 0.09032
}

Semantic roles & 50–950 ramp

primary
#793797
secondary
#88B872
accent
#D6527B
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0811
muted
#7F7B80

Preview Lab

Preview with #793797

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

Preview Lab → · Contrast checker → · Palette generator →

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