#793A8A#793A8A

#793A8A is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.4% C 0.140 H 318.7°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#793A8A
RGBrgb(121, 58, 138)
HSLhsl(287, 41%, 38%)
HSVhsv(287, 58%, 54%)
CMYKcmyk(12.3%, 58%, 0%, 45.9%)
CIE-LABlab(35.84, 40.50, -33.13)
CIE-LCHlch(35.84, 52.33, 320.72°)
OKLaboklab(46.4% 0.1049 -0.0922)
OKLCHoklch(46.4% 0.14 318.7)
XYZxyz(13.9850, 8.9266, 25.0262)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#793A8A #4B8A3A
analogous
#513A8A #793A8A #8A3A73
triadic
#793A8A #8A793A #3A8A79
tetradic
#793A8A #8A513A #4B8A3A #3A738A
square
#793A8A #8A513A #4B8A3A #3A738A
split-complementary
#793A8A #738A3A #3A8A51
monochromatic
#2D1634 #53285F #793A8A #9E4DB4 #B678C6

Accessibility & contrast

On white

7.54
#793A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#793A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #793A8A
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##793A8A#FFFFFF#000000##FFFFFF
##793A8A1.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28508D
Deuteranopia (green-blind)
#3E5688
Tritanopia (blue-blind)
#79465C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #793a8a;
/* rgb */ color: rgb(121, 58, 138);
/* oklch */ color: oklch(46.4% 0.140 318.7);
Tailwind
colors: {
  custom: {
    50: '#a273ac',
    500: '#793a8a',
    950: '#000000',
  },
}
SCSS
$custom: #793a8a;
$custom-light: #a273ac;
$custom-dark: #000000;
JSON
{
  "hex": "#793a8a",
  "rgb": {
    "r": 121,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 287.25,
    "s": 40.816,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46404,
    "c": 0.13969,
    "h": 318.7
  },
  "luminance": 0.08926
}

Semantic roles & 50–950 ramp

primary
#793A8A
secondary
#7EB070
accent
#D15771
background
#FAF7FA
surface
#F4EDF4
border
#CEC8CE
text
#0F0810
muted
#7F7B7F

Preview Lab

Preview with #793A8A

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

Preview Lab → · Contrast checker → · Palette generator →

#793A8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva