#791DA1#791DA1

#791DA1 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.8% C 0.199 H 312.5°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#791DA1
RGBrgb(121, 29, 161)
HSLhsl(282, 69%, 37%)
HSVhsv(282, 82%, 63%)
CMYKcmyk(24.8%, 82%, 0%, 36.9%)
CIE-LABlab(32.96, 57.71, -51.79)
CIE-LCHlch(32.96, 77.54, 318.10°)
OKLaboklab(44.82% 0.1346 -0.1467)
OKLCHoklch(44.82% 0.199 312.5)
XYZxyz(14.7564, 7.5173, 34.3850)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791DA1 #45A11D
analogous
#371DA1 #791DA1 #A11D87
triadic
#791DA1 #A1791D #1DA179
tetradic
#791DA1 #A1371D #45A11D #1D87A1
square
#791DA1 #A1371D #45A11D #1D87A1
split-complementary
#791DA1 #87A11D #1DA137
monochromatic
#2B0A39 #52146D #791DA1 #A026D5 #B758E1

Accessibility & contrast

On white

8.39
#791DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#791DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791DA1
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791DA1#FFFFFF#000000##FFFFFF
##791DA11.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#004F9E
Tritanopia (blue-blind)
#743F60
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #791da1;
/* rgb */ color: rgb(121, 29, 161);
/* oklch */ color: oklch(44.8% 0.199 312.5);
Tailwind
colors: {
  custom: {
    50: '#a466be',
    500: '#791da1',
    950: '#000000',
  },
}
SCSS
$custom: #791da1;
$custom-light: #a466be;
$custom-dark: #000000;
JSON
{
  "hex": "#791da1",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 161
  },
  "hsl": {
    "h": 281.818,
    "s": 69.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44821,
    "c": 0.19907,
    "h": 312.5
  },
  "luminance": 0.07517
}

Semantic roles & 50–950 ramp

primary
#791DA1
secondary
#77C455
accent
#EC3C71
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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