#791C81#791C81

#791C81 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.172 H 324.5°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#791C81
RGBrgb(121, 28, 129)
HSLhsl(295, 64%, 31%)
HSVhsv(295, 78%, 51%)
CMYKcmyk(6.2%, 78.3%, 0%, 49.4%)
CIE-LABlab(30.60, 51.81, -35.89)
CIE-LCHlch(30.60, 63.02, 325.29°)
OKLaboklab(42.44% 0.1403 -0.1001)
OKLCHoklch(42.44% 0.172 324.5)
XYZxyz(12.2625, 6.4812, 21.3697)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791C81 #24811C
analogous
#471C81 #791C81 #811C56
triadic
#791C81 #81791C #1C8179
tetradic
#791C81 #81471C #24811C #1C5681
square
#791C81 #81471C #24811C #1C5681
split-complementary
#791C81 #56811C #1C8147
monochromatic
#1B061C #4A114F #791C81 #A827B3 #CA42D6

Accessibility & contrast

On white

9.15
#791C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791C81
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791C81#FFFFFF#000000##FFFFFF
##791C811.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#314C7F
Tritanopia (blue-blind)
#7C2F4E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791c81;
/* rgb */ color: rgb(121, 28, 129);
/* oklch */ color: oklch(42.4% 0.172 324.5);
Tailwind
colors: {
  custom: {
    50: '#a364a6',
    500: '#791c81',
    950: '#000000',
  },
}
SCSS
$custom: #791c81;
$custom-light: #a364a6;
$custom-dark: #000000;
JSON
{
  "hex": "#791c81",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 295.248,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42443,
    "c": 0.17231,
    "h": 324.5
  },
  "luminance": 0.0648
}

Semantic roles & 50–950 ramp

primary
#791C81
secondary
#4DB444
accent
#E7404E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791C81

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

Preview Lab → · Contrast checker → · Palette generator →

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