#791B84#791B84

#791B84 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.176 H 323.3°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#791B84
RGBrgb(121, 27, 132)
HSLhsl(294, 66%, 31%)
HSVhsv(294, 80%, 52%)
CMYKcmyk(8.3%, 79.5%, 0%, 48.2%)
CIE-LABlab(30.68, 52.68, -37.64)
CIE-LCHlch(30.68, 64.74, 324.45°)
OKLaboklab(42.56% 0.1409 -0.1052)
OKLCHoklch(42.56% 0.176 323.3)
XYZxyz(12.4416, 6.5155, 22.4276)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B84 #26841B
analogous
#441B84 #791B84 #841B5A
triadic
#791B84 #84791B #1B8479
tetradic
#791B84 #84441B #26841B #1B5A84
square
#791B84 #84441B #26841B #1B5A84
split-complementary
#791B84 #5A841B #1B8444
monochromatic
#1C061E #4A1151 #791B84 #A825B7 #C841D8

Accessibility & contrast

On white

9.12
#791B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#791B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B84
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B84#FFFFFF#000000##FFFFFF
##791B841.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004187
Deuteranopia (green-blind)
#2E4C82
Tritanopia (blue-blind)
#7B304F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791b84;
/* rgb */ color: rgb(121, 27, 132);
/* oklch */ color: oklch(42.6% 0.176 323.3);
Tailwind
colors: {
  custom: {
    50: '#a364a8',
    500: '#791b84',
    950: '#000000',
  },
}
SCSS
$custom: #791b84;
$custom-light: #a364a8;
$custom-dark: #000000;
JSON
{
  "hex": "#791b84",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 293.714,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42563,
    "c": 0.17584,
    "h": 323.3
  },
  "luminance": 0.06515
}

Semantic roles & 50–950 ramp

primary
#791B84
secondary
#50B743
accent
#E93F51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791B84

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

Preview Lab → · Contrast checker → · Palette generator →

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