#791D82#791D82

#791D82 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.172 H 324.0°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#791D82
RGBrgb(121, 29, 130)
HSLhsl(295, 64%, 31%)
HSVhsv(295, 78%, 51%)
CMYKcmyk(6.9%, 77.7%, 0%, 49%)
CIE-LABlab(30.77, 51.66, -36.23)
CIE-LCHlch(30.77, 63.10, 324.96°)
OKLaboklab(42.59% 0.1393 -0.1011)
OKLCHoklch(42.59% 0.172 324)
XYZxyz(12.3534, 6.5562, 21.7296)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D82 #26821D
analogous
#461D82 #791D82 #821D58
triadic
#791D82 #82791D #1D8279
tetradic
#791D82 #82461D #26821D #1D5882
square
#791D82 #82461D #26821D #1D5882
split-complementary
#791D82 #58821D #1D8246
monochromatic
#1C071E #4A1250 #791D82 #A828B4 #C844D5

Accessibility & contrast

On white

9.09
#791D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#791D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791D82
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791D82#FFFFFF#000000##FFFFFF
##791D821.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#304C80
Tritanopia (blue-blind)
#7B304F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791d82;
/* rgb */ color: rgb(121, 29, 130);
/* oklch */ color: oklch(42.6% 0.172 324.0);
Tailwind
colors: {
  custom: {
    50: '#a364a7',
    500: '#791d82',
    950: '#000000',
  },
}
SCSS
$custom: #791d82;
$custom-light: #a364a7;
$custom-dark: #000000;
JSON
{
  "hex": "#791d82",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 294.653,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4259,
    "c": 0.1721,
    "h": 324
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#791D82
secondary
#50B546
accent
#E74150
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791D82

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

Preview Lab → · Contrast checker → · Palette generator →

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