#791C98#791C98

#791C98 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.192 H 315.6°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#791C98
RGBrgb(121, 28, 152)
HSLhsl(285, 69%, 35%)
HSVhsv(285, 82%, 60%)
CMYKcmyk(20.4%, 81.6%, 0%, 40.4%)
CIE-LABlab(32.18, 56.20, -47.58)
CIE-LCHlch(32.18, 73.64, 319.75°)
OKLaboklab(44.06% 0.1372 -0.1343)
OKLCHoklch(44.06% 0.192 315.6)
XYZxyz(13.9670, 7.1630, 30.3466)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791C98 #3B981C
analogous
#3B1C98 #791C98 #981C79
triadic
#791C98 #98791C #1C9879
tetradic
#791C98 #983B1C #3B981C #1C7998
square
#791C98 #983B1C #3B981C #1C7998
split-complementary
#791C98 #79981C #1C983B
monochromatic
#270931 #501264 #791C98 #A226CC #BB50DF

Accessibility & contrast

On white

8.63
#791C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#791C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791C98
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791C98#FFFFFF#000000##FFFFFF
##791C981.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#174E95
Tritanopia (blue-blind)
#773A5B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #791c98;
/* rgb */ color: rgb(121, 28, 152);
/* oklch */ color: oklch(44.1% 0.192 315.6);
Tailwind
colors: {
  custom: {
    50: '#a465b7',
    500: '#791c98',
    950: '#000000',
  },
}
SCSS
$custom: #791c98;
$custom-light: #a465b7;
$custom-dark: #000000;
JSON
{
  "hex": "#791c98",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 285,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44061,
    "c": 0.19203,
    "h": 315.6
  },
  "luminance": 0.07162
}

Semantic roles & 50–950 ramp

primary
#791C98
secondary
#6BC14E
accent
#EC3C68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #791C98

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

Preview Lab → · Contrast checker → · Palette generator →

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