#791F8A#791F8A

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

Color values

HEX#791F8A
RGBrgb(121, 31, 138)
HSLhsl(290, 63%, 33%)
HSVhsv(290, 78%, 54%)
CMYKcmyk(12.3%, 77.5%, 0%, 45.9%)
CIE-LABlab(31.53, 52.48, -40.00)
CIE-LCHlch(31.53, 65.98, 322.69°)
OKLaboklab(43.3% 0.1368 -0.1121)
OKLCHoklch(43.3% 0.177 320.7)
XYZxyz(12.9620, 6.8806, 24.6852)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F8A #308A1F
analogous
#431F8A #791F8A #8A1F65
triadic
#791F8A #8A791F #1F8A79
tetradic
#791F8A #8A431F #308A1F #1F658A
square
#791F8A #8A431F #308A1F #1F658A
split-complementary
#791F8A #658A1F #1F8A43
monochromatic
#210926 #4D1458 #791F8A #A52ABC #C14CD7

Accessibility & contrast

On white

8.84
#791F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#791F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F8A
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F8A#FFFFFF#000000##FFFFFF
##791F8A1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#2B4D88
Tritanopia (blue-blind)
#7A3554
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791f8a;
/* rgb */ color: rgb(121, 31, 138);
/* oklch */ color: oklch(43.3% 0.177 320.7);
Tailwind
colors: {
  custom: {
    50: '#a365ad',
    500: '#791f8a',
    950: '#000000',
  },
}
SCSS
$custom: #791f8a;
$custom-light: #a365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#791f8a",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 290.467,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43297,
    "c": 0.17685,
    "h": 320.7
  },
  "luminance": 0.0688
}

Semantic roles & 50–950 ramp

primary
#791F8A
secondary
#5DBA4B
accent
#E6415C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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