#791B9E#791B9E

#791B9E is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.4% C 0.198 H 313.6°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#791B9E
RGBrgb(121, 27, 158)
HSLhsl(283, 71%, 36%)
HSVhsv(283, 83%, 62%)
CMYKcmyk(23.4%, 82.9%, 0%, 38%)
CIE-LABlab(32.52, 57.71, -50.68)
CIE-LCHlch(32.52, 76.80, 318.71°)
OKLaboklab(44.44% 0.1367 -0.1434)
OKLCHoklch(44.44% 0.198 313.6)
XYZxyz(14.4476, 7.3179, 32.9926)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B9E #409E1B
analogous
#371B9E #791B9E #9E1B82
triadic
#791B9E #9E791B #1B9E79
tetradic
#791B9E #9E371B #409E1B #1B829E
square
#791B9E #9E371B #409E1B #1B829E
split-complementary
#791B9E #829E1B #1B9E37
monochromatic
#290935 #51126A #791B9E #A124D2 #B952E1

Accessibility & contrast

On white

8.52
#791B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#791B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B9E
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B9E#FFFFFF#000000##FFFFFF
##791B9E1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#064E9B
Tritanopia (blue-blind)
#753C5E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #791b9e;
/* rgb */ color: rgb(121, 27, 158);
/* oklch */ color: oklch(44.4% 0.198 313.6);
Tailwind
colors: {
  custom: {
    50: '#a465bb',
    500: '#791b9e',
    950: '#000000',
  },
}
SCSS
$custom: #791b9e;
$custom-light: #a465bb;
$custom-dark: #000000;
JSON
{
  "hex": "#791b9e",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 283.053,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44443,
    "c": 0.19814,
    "h": 313.6
  },
  "luminance": 0.07317
}

Semantic roles & 50–950 ramp

primary
#791B9E
secondary
#71C451
accent
#EE3A6D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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