#791D7F#791D7F

#791D7F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.170 H 325.3°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#791D7F
RGBrgb(121, 29, 127)
HSLhsl(296, 63%, 31%)
HSVhsv(296, 77%, 50%)
CMYKcmyk(4.7%, 77.2%, 0%, 50.2%)
CIE-LABlab(30.58, 51.11, -34.65)
CIE-LCHlch(30.58, 61.75, 325.86°)
OKLaboklab(42.4% 0.1395 -0.0965)
OKLCHoklch(42.4% 0.17 325.3)
XYZxyz(12.1550, 6.4768, 20.6845)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D7F #237F1D
analogous
#481D7F #791D7F #7F1D54
triadic
#791D7F #7F791D #1D7F79
tetradic
#791D7F #7F481D #237F1D #1D547F
square
#791D7F #7F481D #237F1D #1D547F
split-complementary
#791D7F #547F1D #1D7F48
monochromatic
#1A061B #4A124D #791D7F #A828B1 #CB42D4

Accessibility & contrast

On white

9.15
#791D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#791D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791D7F
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791D7F#FFFFFF#000000##FFFFFF
##791D7F1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#324C7D
Tritanopia (blue-blind)
#7C2E4D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791d7f;
/* rgb */ color: rgb(121, 29, 127);
/* oklch */ color: oklch(42.4% 0.170 325.3);
Tailwind
colors: {
  custom: {
    50: '#a364a4',
    500: '#791d7f',
    950: '#000000',
  },
}
SCSS
$custom: #791d7f;
$custom-light: #a364a4;
$custom-dark: #000000;
JSON
{
  "hex": "#791d7f",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 296.327,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42395,
    "c": 0.16959,
    "h": 325.3
  },
  "luminance": 0.06476
}

Semantic roles & 50–950 ramp

primary
#791D7F
secondary
#4CB245
accent
#E6424C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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