#791F84#791F84

#791F84 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.172 H 323.1°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#791F84
RGBrgb(121, 31, 132)
HSLhsl(293, 62%, 32%)
HSVhsv(293, 77%, 52%)
CMYKcmyk(8.3%, 76.5%, 0%, 48.2%)
CIE-LABlab(31.14, 51.34, -36.89)
CIE-LCHlch(31.14, 63.22, 324.30°)
OKLaboklab(42.89% 0.1373 -0.103)
OKLCHoklch(42.89% 0.172 323.1)
XYZxyz(12.5396, 6.7116, 22.4603)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F84 #2A841F
analogous
#461F84 #791F84 #841F5D
triadic
#791F84 #84791F #1F8479
tetradic
#791F84 #84461F #2A841F #1F5D84
square
#791F84 #84461F #2A841F #1F5D84
split-complementary
#791F84 #5D841F #1F8446
monochromatic
#1E0821 #4C1352 #791F84 #A62BB6 #C549D4

Accessibility & contrast

On white

8.97
#791F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#791F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F84
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F84#FFFFFF#000000##FFFFFF
##791F841.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004387
Deuteranopia (green-blind)
#304D82
Tritanopia (blue-blind)
#7B3250
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #791f84;
/* rgb */ color: rgb(121, 31, 132);
/* oklch */ color: oklch(42.9% 0.172 323.1);
Tailwind
colors: {
  custom: {
    50: '#a365a8',
    500: '#791f84',
    950: '#000000',
  },
}
SCSS
$custom: #791f84;
$custom-light: #a365a8;
$custom-dark: #000000;
JSON
{
  "hex": "#791f84",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 293.465,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42892,
    "c": 0.17165,
    "h": 323.1
  },
  "luminance": 0.06711
}

Semantic roles & 50–950 ramp

primary
#791F84
secondary
#54B748
accent
#E54354
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791F84

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

Preview Lab → · Contrast checker → · Palette generator →

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