#791F96#791F96

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

Color values

HEX#791F96
RGBrgb(121, 31, 150)
HSLhsl(285, 66%, 35%)
HSVhsv(285, 79%, 59%)
CMYKcmyk(19.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(32.36, 54.83, -46.05)
CIE-LCHlch(32.36, 71.61, 319.97°)
OKLaboklab(44.15% 0.1351 -0.1299)
OKLCHoklch(44.15% 0.187 316.1)
XYZxyz(13.8793, 7.2475, 29.5161)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F96 #3C961F
analogous
#3D1F96 #791F96 #961F77
triadic
#791F96 #96791F #1F9679
tetradic
#791F96 #963D1F #3C961F #1F7796
square
#791F96 #963D1F #3C961F #1F7796
split-complementary
#791F96 #77961F #1F963D
monochromatic
#270A31 #501563 #791F96 #A229C9 #BB54DC

Accessibility & contrast

On white

8.57
#791F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#791F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F96
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F96#FFFFFF#000000##FFFFFF
##791F961.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#1D4F93
Tritanopia (blue-blind)
#773A5A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #791f96;
/* rgb */ color: rgb(121, 31, 150);
/* oklch */ color: oklch(44.1% 0.187 316.1);
Tailwind
colors: {
  custom: {
    50: '#a466b6',
    500: '#791f96',
    950: '#000000',
  },
}
SCSS
$custom: #791f96;
$custom-light: #a466b6;
$custom-dark: #000000;
JSON
{
  "hex": "#791f96",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 285.378,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44148,
    "c": 0.18742,
    "h": 316.1
  },
  "luminance": 0.07247
}

Semantic roles & 50–950 ramp

primary
#791F96
secondary
#6CBF52
accent
#E93F68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #791F96

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

Preview Lab → · Contrast checker → · Palette generator →

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