#791C7A#791C7A

#791C7A is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.167 H 327.6°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#791C7A
RGBrgb(121, 28, 122)
HSLhsl(299, 63%, 29%)
HSVhsv(299, 77%, 48%)
CMYKcmyk(0.8%, 77%, 0%, 52.2%)
CIE-LABlab(30.16, 50.56, -32.18)
CIE-LCHlch(30.16, 59.93, 327.52°)
OKLaboklab(41.99% 0.1406 -0.0893)
OKLCHoklch(41.99% 0.167 327.6)
XYZxyz(11.8131, 6.3014, 19.0027)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791C7A #1D7A1C
analogous
#4A1C7A #791C7A #7A1C4C
triadic
#791C7A #7A791C #1C7A79
tetradic
#791C7A #7A4A1C #1D7A1C #1C4C7A
square
#791C7A #7A4A1C #1D7A1C #1C4C7A
split-complementary
#791C7A #4C7A1C #1C7A4A
monochromatic
#190619 #481148 #791C7A #AA27AC #D13ED3

Accessibility & contrast

On white

9.29
#791C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#791C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791C7A
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791C7A#FFFFFF#000000##FFFFFF
##791C7A1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053F7D
Deuteranopia (green-blind)
#354B78
Tritanopia (blue-blind)
#7D2B4A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #791c7a;
/* rgb */ color: rgb(121, 28, 122);
/* oklch */ color: oklch(42.0% 0.167 327.6);
Tailwind
colors: {
  custom: {
    50: '#a363a1',
    500: '#791c7a',
    950: '#000000',
  },
}
SCSS
$custom: #791c7a;
$custom-light: #a363a1;
$custom-dark: #000000;
JSON
{
  "hex": "#791c7a",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 299.362,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41993,
    "c": 0.16652,
    "h": 327.6
  },
  "luminance": 0.06301
}

Semantic roles & 50–950 ramp

primary
#791C7A
secondary
#45AE44
accent
#E64244
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #791C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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