#791F9A#791F9A

#791F9A is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.191 H 314.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#791F9A
RGBrgb(121, 31, 154)
HSLhsl(284, 66%, 36%)
HSVhsv(284, 80%, 60%)
CMYKcmyk(21.4%, 79.9%, 0%, 39.6%)
CIE-LABlab(32.65, 55.64, -48.03)
CIE-LCHlch(32.65, 73.50, 319.20°)
OKLaboklab(44.44% 0.1344 -0.1357)
OKLCHoklch(44.44% 0.191 314.7)
XYZxyz(14.2069, 7.3785, 31.2414)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F9A #409A1F
analogous
#3C1F9A #791F9A #9A1F7E
triadic
#791F9A #9A791F #1F9A79
tetradic
#791F9A #9A3C1F #409A1F #1F7E9A
square
#791F9A #9A3C1F #409A1F #1F7E9A
split-complementary
#791F9A #7E9A1F #1F9A3C
monochromatic
#290A34 #511567 #791F9A #A129CD #B956DD

Accessibility & contrast

On white

8.48
#791F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#791F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F9A
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F9A#FFFFFF#000000##FFFFFF
##791F9A1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#174F97
Tritanopia (blue-blind)
#763C5D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #791f9a;
/* rgb */ color: rgb(121, 31, 154);
/* oklch */ color: oklch(44.4% 0.191 314.7);
Tailwind
colors: {
  custom: {
    50: '#a466b8',
    500: '#791f9a',
    950: '#000000',
  },
}
SCSS
$custom: #791f9a;
$custom-light: #a466b8;
$custom-dark: #000000;
JSON
{
  "hex": "#791f9a",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 283.902,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44443,
    "c": 0.19099,
    "h": 314.7
  },
  "luminance": 0.07378
}

Semantic roles & 50–950 ramp

primary
#791F9A
secondary
#71C154
accent
#E93E6C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #791F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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