#791B86#791B86

#791B86 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.178 H 322.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#791B86
RGBrgb(121, 27, 134)
HSLhsl(293, 66%, 32%)
HSVhsv(293, 80%, 53%)
CMYKcmyk(9.7%, 79.9%, 0%, 47.5%)
CIE-LABlab(30.81, 53.05, -38.67)
CIE-LCHlch(30.81, 65.65, 323.91°)
OKLaboklab(42.7% 0.1407 -0.1082)
OKLCHoklch(42.7% 0.178 322.4)
XYZxyz(12.5797, 6.5708, 23.1553)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B86 #28861B
analogous
#441B86 #791B86 #861B5E
triadic
#791B86 #86791B #1B8679
tetradic
#791B86 #86441B #28861B #1B5E86
square
#791B86 #86441B #28861B #1B5E86
split-complementary
#791B86 #5E861B #1B8644
monochromatic
#1D0620 #4B1153 #791B86 #A725B9 #C742D9

Accessibility & contrast

On white

9.08
#791B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#791B86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B86
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B86#FFFFFF#000000##FFFFFF
##791B861.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#2C4C84
Tritanopia (blue-blind)
#7B3150
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791b86;
/* rgb */ color: rgb(121, 27, 134);
/* oklch */ color: oklch(42.7% 0.178 322.4);
Tailwind
colors: {
  custom: {
    50: '#a364aa',
    500: '#791b86',
    950: '#000000',
  },
}
SCSS
$custom: #791b86;
$custom-light: #a364aa;
$custom-dark: #000000;
JSON
{
  "hex": "#791b86",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 292.71,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42698,
    "c": 0.17752,
    "h": 322.4
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#791B86
secondary
#52B944
accent
#E93E53
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791B86

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

Preview Lab → · Contrast checker → · Palette generator →

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