#791D8D#791D8D

#791D8D is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.182 H 319.6°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#791D8D
RGBrgb(121, 29, 141)
HSLhsl(289, 66%, 33%)
HSVhsv(289, 79%, 55%)
CMYKcmyk(14.2%, 79.4%, 0%, 44.7%)
CIE-LABlab(31.50, 53.73, -41.90)
CIE-LCHlch(31.50, 68.14, 322.05°)
OKLaboklab(43.34% 0.1382 -0.1177)
OKLCHoklch(43.34% 0.182 319.6)
XYZxyz(13.1316, 6.8674, 25.8280)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D8D #318D1D
analogous
#411D8D #791D8D #8D1D69
triadic
#791D8D #8D791D #1D8D79
tetradic
#791D8D #8D411D #318D1D #1D698D
square
#791D8D #8D411D #318D1D #1D698D
split-complementary
#791D8D #698D1D #1D8D41
monochromatic
#220827 #4D135A #791D8D #A527C0 #C04BDA

Accessibility & contrast

On white

8.85
#791D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#791D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791D8D
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791D8D#FFFFFF#000000##FFFFFF
##791D8D1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#274D8B
Tritanopia (blue-blind)
#793555
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791d8d;
/* rgb */ color: rgb(121, 29, 141);
/* oklch */ color: oklch(43.3% 0.182 319.6);
Tailwind
colors: {
  custom: {
    50: '#a365af',
    500: '#791d8d',
    950: '#000000',
  },
}
SCSS
$custom: #791d8d;
$custom-light: #a365af;
$custom-dark: #000000;
JSON
{
  "hex": "#791d8d",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 289.286,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.4334,
    "c": 0.18152,
    "h": 319.6
  },
  "luminance": 0.06867
}

Semantic roles & 50–950 ramp

primary
#791D8D
secondary
#5EBC4A
accent
#E93F5D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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