#791B96#791B96

#791B96 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.191 H 316.4°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#791B96
RGBrgb(121, 27, 150)
HSLhsl(286, 69%, 35%)
HSVhsv(286, 82%, 59%)
CMYKcmyk(19.3%, 82%, 0%, 41.2%)
CIE-LABlab(31.92, 56.11, -46.76)
CIE-LCHlch(31.92, 73.04, 320.19°)
OKLaboklab(43.84% 0.1384 -0.1319)
OKLCHoklch(43.84% 0.191 316.4)
XYZxyz(13.7813, 7.0514, 29.4834)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B96 #38961B
analogous
#3C1B96 #791B96 #961B75
triadic
#791B96 #96791B #1B9679
tetradic
#791B96 #963C1B #38961B #1B7596
square
#791B96 #963C1B #38961B #1B7596
split-complementary
#791B96 #75961B #1B963C
monochromatic
#25082E #4F1262 #791B96 #A324CA #BC4DDF

Accessibility & contrast

On white

8.71
#791B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#791B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B96
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B96#FFFFFF#000000##FFFFFF
##791B961.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#1A4E93
Tritanopia (blue-blind)
#77385A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #791b96;
/* rgb */ color: rgb(121, 27, 150);
/* oklch */ color: oklch(43.8% 0.191 316.4);
Tailwind
colors: {
  custom: {
    50: '#a464b6',
    500: '#791b96',
    950: '#000000',
  },
}
SCSS
$custom: #791b96;
$custom-light: #a464b6;
$custom-dark: #000000;
JSON
{
  "hex": "#791b96",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 285.854,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.43838,
    "c": 0.19119,
    "h": 316.4
  },
  "luminance": 0.07051
}

Semantic roles & 50–950 ramp

primary
#791B96
secondary
#67C14C
accent
#EC3B65
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #791B96

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

Preview Lab → · Contrast checker → · Palette generator →

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