#791B9A#791B9A

#791B9A is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.195 H 315.0°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#791B9A
RGBrgb(121, 27, 154)
HSLhsl(284, 70%, 35%)
HSVhsv(284, 82%, 60%)
CMYKcmyk(21.4%, 82.5%, 0%, 39.6%)
CIE-LABlab(32.22, 56.90, -48.73)
CIE-LCHlch(32.22, 74.92, 319.42°)
OKLaboklab(44.14% 0.1376 -0.1377)
OKLCHoklch(44.14% 0.195 315)
XYZxyz(14.1089, 7.1824, 31.2087)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B9A #3C9A1B
analogous
#391B9A #791B9A #9A1B7C
triadic
#791B9A #9A791B #1B9A79
tetradic
#791B9A #9A391B #3C9A1B #1B7C9A
square
#791B9A #9A391B #3C9A1B #1B7C9A
split-complementary
#791B9A #7C9A1B #1B9A39
monochromatic
#270932 #501266 #791B9A #A224CE #BB4FE0

Accessibility & contrast

On white

8.62
#791B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#791B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B9A
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B9A#FFFFFF#000000##FFFFFF
##791B9A1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#124E97
Tritanopia (blue-blind)
#763A5C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #791b9a;
/* rgb */ color: rgb(121, 27, 154);
/* oklch */ color: oklch(44.1% 0.195 315.0);
Tailwind
colors: {
  custom: {
    50: '#a465b8',
    500: '#791b9a',
    950: '#000000',
  },
}
SCSS
$custom: #791b9a;
$custom-light: #a465b8;
$custom-dark: #000000;
JSON
{
  "hex": "#791b9a",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 154
  },
  "hsl": {
    "h": 284.409,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44138,
    "c": 0.19465,
    "h": 315
  },
  "luminance": 0.07182
}

Semantic roles & 50–950 ramp

primary
#791B9A
secondary
#6CC34E
accent
#ED3B69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #791B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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