#791D7D#791D7D

#791D7D is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.168 H 326.2°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#791D7D
RGBrgb(121, 29, 125)
HSLhsl(298, 62%, 30%)
HSVhsv(298, 77%, 49%)
CMYKcmyk(3.2%, 76.8%, 0%, 51%)
CIE-LABlab(30.46, 50.75, -33.59)
CIE-LCHlch(30.46, 60.86, 326.50°)
OKLaboklab(42.27% 0.1396 -0.0934)
OKLCHoklch(42.27% 0.168 326.2)
XYZxyz(12.0260, 6.4252, 20.0048)
Luminance0.0642 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D7D #217D1D
analogous
#491D7D #791D7D #7D1D51
triadic
#791D7D #7D791D #1D7D79
tetradic
#791D7D #7D491D #217D1D #1D517D
square
#791D7D #7D491D #217D1D #1D517D
split-complementary
#791D7D #517D1D #1D7D49
monochromatic
#19061A #49114B #791D7D #A929AF #CD41D3

Accessibility & contrast

On white

9.19
#791D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791D7D
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791D7D#FFFFFF#000000##FFFFFF
##791D7D1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#344C7B
Tritanopia (blue-blind)
#7C2D4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791d7d;
/* rgb */ color: rgb(121, 29, 125);
/* oklch */ color: oklch(42.3% 0.168 326.2);
Tailwind
colors: {
  custom: {
    50: '#a364a3',
    500: '#791d7d',
    950: '#000000',
  },
}
SCSS
$custom: #791d7d;
$custom-light: #a364a3;
$custom-dark: #000000;
JSON
{
  "hex": "#791d7d",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 297.5,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42266,
    "c": 0.16792,
    "h": 326.2
  },
  "luminance": 0.06424
}

Semantic roles & 50–950 ramp

primary
#791D7D
secondary
#4AB145
accent
#E54249
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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