#791D87#791D87

#791D87 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.176 H 322.0°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#791D87
RGBrgb(121, 29, 135)
HSLhsl(292, 65%, 32%)
HSVhsv(292, 79%, 53%)
CMYKcmyk(10.4%, 78.5%, 0%, 47.1%)
CIE-LABlab(31.10, 52.59, -38.83)
CIE-LCHlch(31.10, 65.37, 323.56°)
OKLaboklab(42.93% 0.1389 -0.1087)
OKLCHoklch(42.93% 0.176 322)
XYZxyz(12.6972, 6.6937, 23.5402)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D87 #2B871D
analogous
#441D87 #791D87 #871D60
triadic
#791D87 #87791D #1D8779
tetradic
#791D87 #87441D #2B871D #1D6087
square
#791D87 #87441D #2B871D #1D6087
split-complementary
#791D87 #60871D #1D8744
monochromatic
#1F0722 #4C1255 #791D87 #A628B9 #C447D7

Accessibility & contrast

On white

8.98
#791D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#791D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791D87
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791D87#FFFFFF#000000##FFFFFF
##791D871.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#2C4D85
Tritanopia (blue-blind)
#7A3251
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #791d87;
/* rgb */ color: rgb(121, 29, 135);
/* oklch */ color: oklch(42.9% 0.176 322.0);
Tailwind
colors: {
  custom: {
    50: '#a364aa',
    500: '#791d87',
    950: '#000000',
  },
}
SCSS
$custom: #791d87;
$custom-light: #a364aa;
$custom-dark: #000000;
JSON
{
  "hex": "#791d87",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 292.075,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42925,
    "c": 0.17636,
    "h": 322
  },
  "luminance": 0.06693
}

Semantic roles & 50–950 ramp

primary
#791D87
secondary
#56B946
accent
#E84056
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791D87

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

Preview Lab → · Contrast checker → · Palette generator →

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