#791D8A#791D8A

#791D8A is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.179 H 320.8°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#791D8A
RGBrgb(121, 29, 138)
HSLhsl(291, 65%, 33%)
HSVhsv(291, 79%, 54%)
CMYKcmyk(12.3%, 79%, 0%, 45.9%)
CIE-LABlab(31.30, 53.15, -40.37)
CIE-LCHlch(31.30, 66.75, 322.78°)
OKLaboklab(43.13% 0.1386 -0.1132)
OKLCHoklch(43.13% 0.179 320.8)
XYZxyz(12.9114, 6.7794, 24.6683)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D8A #2E8A1D
analogous
#421D8A #791D8A #8A1D64
triadic
#791D8A #8A791D #1D8A79
tetradic
#791D8A #8A421D #2E8A1D #1D648A
square
#791D8A #8A421D #2E8A1D #1D648A
split-complementary
#791D8A #648A1D #1D8A42
monochromatic
#200825 #4D1257 #791D8A #A528BD #C249D9

Accessibility & contrast

On white

8.91
#791D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#791D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791D8A
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791D8A#FFFFFF#000000##FFFFFF
##791D8A1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#2A4D88
Tritanopia (blue-blind)
#7A3453
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791d8a;
/* rgb */ color: rgb(121, 29, 138);
/* oklch */ color: oklch(43.1% 0.179 320.8);
Tailwind
colors: {
  custom: {
    50: '#a365ad',
    500: '#791d8a',
    950: '#000000',
  },
}
SCSS
$custom: #791d8a;
$custom-light: #a365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#791d8a",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 290.642,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43131,
    "c": 0.17893,
    "h": 320.8
  },
  "luminance": 0.06779
}

Semantic roles & 50–950 ramp

primary
#791D8A
secondary
#5ABB48
accent
#E8405A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791D8A

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

Preview Lab → · Contrast checker → · Palette generator →

#791D8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva