#791D7C#791D7C

#791D7C is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.167 H 326.7°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#791D7C
RGBrgb(121, 29, 124)
HSLhsl(298, 62%, 30%)
HSVhsv(298, 77%, 49%)
CMYKcmyk(2.4%, 76.6%, 0%, 51.4%)
CIE-LABlab(30.40, 50.57, -33.06)
CIE-LCHlch(30.40, 60.42, 326.83°)
OKLaboklab(42.2% 0.1396 -0.0918)
OKLCHoklch(42.2% 0.167 326.7)
XYZxyz(11.9624, 6.3997, 19.6701)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D7C #207C1D
analogous
#491D7C #791D7C #7C1D50
triadic
#791D7C #7C791D #1D7C79
tetradic
#791D7C #7C491D #207C1D #1D507C
square
#791D7C #7C491D #207C1D #1D507C
split-complementary
#791D7C #507C1D #1D7C49
monochromatic
#180619 #49114A #791D7C #A929AE #CE41D3

Accessibility & contrast

On white

9.21
#791D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#791D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791D7C
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791D7C#FFFFFF#000000##FFFFFF
##791D7C1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02407F
Deuteranopia (green-blind)
#344C7A
Tritanopia (blue-blind)
#7C2D4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791d7c;
/* rgb */ color: rgb(121, 29, 124);
/* oklch */ color: oklch(42.2% 0.167 326.7);
Tailwind
colors: {
  custom: {
    50: '#a364a2',
    500: '#791d7c',
    950: '#000000',
  },
}
SCSS
$custom: #791d7c;
$custom-light: #a364a2;
$custom-dark: #000000;
JSON
{
  "hex": "#791d7c",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 298.105,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.42203,
    "c": 0.16708,
    "h": 326.7
  },
  "luminance": 0.06399
}

Semantic roles & 50–950 ramp

primary
#791D7C
secondary
#49B045
accent
#E54348
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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