#791A97#791A97

#791A97 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.8% C 0.193 H 316.1°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#791A97
RGBrgb(121, 26, 151)
HSLhsl(286, 71%, 35%)
HSVhsv(286, 83%, 59%)
CMYKcmyk(19.9%, 82.8%, 0%, 40.8%)
CIE-LABlab(31.89, 56.60, -47.42)
CIE-LCHlch(31.89, 73.84, 320.04°)
OKLaboklab(43.84% 0.1389 -0.1338)
OKLCHoklch(43.84% 0.193 316.1)
XYZxyz(13.8396, 7.0387, 29.9017)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791A97 #38971A
analogous
#3B1A97 #791A97 #971A77
triadic
#791A97 #97791A #1A9779
tetradic
#791A97 #973B1A #38971A #1A7797
square
#791A97 #973B1A #38971A #1A7797
split-complementary
#791A97 #77971A #1A973B
monochromatic
#25082F #4F1163 #791A97 #A323CB #BC4BE0

Accessibility & contrast

On white

8.72
#791A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#791A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791A97
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791A97#FFFFFF#000000##FFFFFF
##791A971.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#174D94
Tritanopia (blue-blind)
#77395A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #791a97;
/* rgb */ color: rgb(121, 26, 151);
/* oklch */ color: oklch(43.8% 0.193 316.1);
Tailwind
colors: {
  custom: {
    50: '#a464b6',
    500: '#791a97',
    950: '#000000',
  },
}
SCSS
$custom: #791a97;
$custom-light: #a464b6;
$custom-dark: #000000;
JSON
{
  "hex": "#791a97",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 285.6,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.43841,
    "c": 0.19293,
    "h": 316.1
  },
  "luminance": 0.07038
}

Semantic roles & 50–950 ramp

primary
#791A97
secondary
#67C24B
accent
#ED3A65
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #791A97

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

Preview Lab → · Contrast checker → · Palette generator →

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