#791F97#791F97

#791F97 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.188 H 315.8°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#791F97
RGBrgb(121, 31, 151)
HSLhsl(285, 66%, 36%)
HSVhsv(285, 79%, 59%)
CMYKcmyk(19.9%, 79.5%, 0%, 40.8%)
CIE-LABlab(32.44, 55.03, -46.55)
CIE-LCHlch(32.44, 72.08, 319.78°)
OKLaboklab(44.22% 0.135 -0.1313)
OKLCHoklch(44.22% 0.188 315.8)
XYZxyz(13.9602, 7.2798, 29.9419)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F97 #3D971F
analogous
#3D1F97 #791F97 #971F79
triadic
#791F97 #97791F #1F9779
tetradic
#791F97 #973D1F #3D971F #1F7997
square
#791F97 #973D1F #3D971F #1F7997
split-complementary
#791F97 #79971F #1F973D
monochromatic
#280A31 #501564 #791F97 #A229CA #BA54DC

Accessibility & contrast

On white

8.55
#791F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#791F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F97
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F97#FFFFFF#000000##FFFFFF
##791F971.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#1C4F94
Tritanopia (blue-blind)
#773B5B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #791f97;
/* rgb */ color: rgb(121, 31, 151);
/* oklch */ color: oklch(44.2% 0.188 315.8);
Tailwind
colors: {
  custom: {
    50: '#a466b6',
    500: '#791f97',
    950: '#000000',
  },
}
SCSS
$custom: #791f97;
$custom-light: #a466b6;
$custom-dark: #000000;
JSON
{
  "hex": "#791f97",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 285,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44221,
    "c": 0.18831,
    "h": 315.8
  },
  "luminance": 0.07279
}

Semantic roles & 50–950 ramp

primary
#791F97
secondary
#6EBF52
accent
#E93F69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #791F97

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

Preview Lab → · Contrast checker → · Palette generator →

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