#791D7E#791D7E

#791D7E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.169 H 325.8°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#791D7E
RGBrgb(121, 29, 126)
HSLhsl(297, 63%, 30%)
HSVhsv(297, 77%, 49%)
CMYKcmyk(4%, 77%, 0%, 50.6%)
CIE-LABlab(30.52, 50.93, -34.12)
CIE-LCHlch(30.52, 61.31, 326.18°)
OKLaboklab(42.33% 0.1395 -0.0949)
OKLCHoklch(42.33% 0.169 325.8)
XYZxyz(12.0902, 6.4508, 20.3430)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D7E #227E1D
analogous
#481D7E #791D7E #7E1D52
triadic
#791D7E #7E791D #1D7E79
tetradic
#791D7E #7E481D #227E1D #1D527E
square
#791D7E #7E481D #227E1D #1D527E
split-complementary
#791D7E #527E1D #1D7E48
monochromatic
#19061B #49124C #791D7E #A928B0 #CC42D3

Accessibility & contrast

On white

9.17
#791D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#791D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791D7E
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791D7E#FFFFFF#000000##FFFFFF
##791D7E1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#334C7C
Tritanopia (blue-blind)
#7C2E4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791d7e;
/* rgb */ color: rgb(121, 29, 126);
/* oklch */ color: oklch(42.3% 0.169 325.8);
Tailwind
colors: {
  custom: {
    50: '#a364a4',
    500: '#791d7e',
    950: '#000000',
  },
}
SCSS
$custom: #791d7e;
$custom-light: #a364a4;
$custom-dark: #000000;
JSON
{
  "hex": "#791d7e",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 296.907,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.4233,
    "c": 0.16874,
    "h": 325.8
  },
  "luminance": 0.0645
}

Semantic roles & 50–950 ramp

primary
#791D7E
secondary
#4BB145
accent
#E6424B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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