#791C8A#791C8A

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

Color values

HEX#791C8A
RGBrgb(121, 28, 138)
HSLhsl(291, 66%, 33%)
HSVhsv(291, 80%, 54%)
CMYKcmyk(12.3%, 79.7%, 0%, 45.9%)
CIE-LABlab(31.19, 53.48, -40.55)
CIE-LCHlch(31.19, 67.12, 322.83°)
OKLaboklab(43.05% 0.1394 -0.1137)
OKLCHoklch(43.05% 0.18 320.8)
XYZxyz(12.8873, 6.7311, 24.6603)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791C8A #2D8A1C
analogous
#421C8A #791C8A #8A1C64
triadic
#791C8A #8A791C #1C8A79
tetradic
#791C8A #8A421C #2D8A1C #1C648A
square
#791C8A #8A421C #2D8A1C #1C648A
split-complementary
#791C8A #648A1C #1C8A42
monochromatic
#200724 #4C1257 #791C8A #A626BD #C347DA

Accessibility & contrast

On white

8.95
#791C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#791C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791C8A
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791C8A#FFFFFF#000000##FFFFFF
##791C8A1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#294D88
Tritanopia (blue-blind)
#7A3353
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #791c8a;
/* rgb */ color: rgb(121, 28, 138);
/* oklch */ color: oklch(43.1% 0.180 320.8);
Tailwind
colors: {
  custom: {
    50: '#a364ad',
    500: '#791c8a',
    950: '#000000',
  },
}
SCSS
$custom: #791c8a;
$custom-light: #a364ad;
$custom-dark: #000000;
JSON
{
  "hex": "#791c8a",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 290.727,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43051,
    "c": 0.17992,
    "h": 320.8
  },
  "luminance": 0.0673
}

Semantic roles & 50–950 ramp

primary
#791C8A
secondary
#58BB46
accent
#E93F59
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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