#791E87#791E87

#791E87 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.175 H 321.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#791E87
RGBrgb(121, 30, 135)
HSLhsl(292, 64%, 32%)
HSVhsv(292, 78%, 53%)
CMYKcmyk(10.4%, 77.8%, 0%, 47.1%)
CIE-LABlab(31.22, 52.25, -38.64)
CIE-LCHlch(31.22, 64.99, 323.51°)
OKLaboklab(43.01% 0.138 -0.1081)
OKLCHoklch(43.01% 0.175 321.9)
XYZxyz(12.7221, 6.7435, 23.5485)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791E87 #2C871E
analogous
#451E87 #791E87 #871E61
triadic
#791E87 #87791E #1E8779
tetradic
#791E87 #87451E #2C871E #1E6187
square
#791E87 #87451E #2C871E #1E6187
split-complementary
#791E87 #61871E #1E8745
monochromatic
#1F0823 #4C1355 #791E87 #A629B9 #C449D7

Accessibility & contrast

On white

8.94
#791E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#791E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791E87
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791E87#FFFFFF#000000##FFFFFF
##791E871.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#2D4D85
Tritanopia (blue-blind)
#7A3352
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #791e87;
/* rgb */ color: rgb(121, 30, 135);
/* oklch */ color: oklch(43.0% 0.175 321.9);
Tailwind
colors: {
  custom: {
    50: '#a365aa',
    500: '#791e87',
    950: '#000000',
  },
}
SCSS
$custom: #791e87;
$custom-light: #a365aa;
$custom-dark: #000000;
JSON
{
  "hex": "#791e87",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 292,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43008,
    "c": 0.17531,
    "h": 321.9
  },
  "luminance": 0.06743
}

Semantic roles & 50–950 ramp

primary
#791E87
secondary
#57B948
accent
#E74157
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791E87

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

Preview Lab → · Contrast checker → · Palette generator →

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