#791C87#791C87

#791C87 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.177 H 322.0°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#791C87
RGBrgb(121, 28, 135)
HSLhsl(292, 66%, 32%)
HSVhsv(292, 79%, 53%)
CMYKcmyk(10.4%, 79.3%, 0%, 47.1%)
CIE-LABlab(30.99, 52.91, -39.01)
CIE-LCHlch(30.99, 65.74, 323.60°)
OKLaboklab(42.85% 0.1398 -0.1092)
OKLCHoklch(42.85% 0.177 322)
XYZxyz(12.6731, 6.6455, 23.5322)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791C87 #2A871C
analogous
#441C87 #791C87 #871C5F
triadic
#791C87 #87791C #1C8779
tetradic
#791C87 #87441C #2A871C #1C5F87
square
#791C87 #87441C #2A871C #1C5F87
split-complementary
#791C87 #5F871C #1C8744
monochromatic
#1E0722 #4C1154 #791C87 #A627BA #C545D8

Accessibility & contrast

On white

9.02
#791C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#791C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791C87
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791C87#FFFFFF#000000##FFFFFF
##791C871.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#2C4C85
Tritanopia (blue-blind)
#7A3251
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #791c87;
/* rgb */ color: rgb(121, 28, 135);
/* oklch */ color: oklch(42.8% 0.177 322.0);
Tailwind
colors: {
  custom: {
    50: '#a364aa',
    500: '#791c87',
    950: '#000000',
  },
}
SCSS
$custom: #791c87;
$custom-light: #a364aa;
$custom-dark: #000000;
JSON
{
  "hex": "#791c87",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 292.15,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42845,
    "c": 0.17737,
    "h": 322
  },
  "luminance": 0.06645
}

Semantic roles & 50–950 ramp

primary
#791C87
secondary
#54BA45
accent
#E93F55
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791C87

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

Preview Lab → · Contrast checker → · Palette generator →

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