#791F8D#791F8D

#791F8D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.179 H 319.5°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#791F8D
RGBrgb(121, 31, 141)
HSLhsl(289, 64%, 34%)
HSVhsv(289, 78%, 55%)
CMYKcmyk(14.2%, 78%, 0%, 44.7%)
CIE-LABlab(31.74, 53.06, -41.53)
CIE-LCHlch(31.74, 67.38, 321.95°)
OKLaboklab(43.5% 0.1364 -0.1166)
OKLCHoklch(43.5% 0.179 319.5)
XYZxyz(13.1822, 6.9687, 25.8449)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F8D #338D1F
analogous
#421F8D #791F8D #8D1F6A
triadic
#791F8D #8D791F #1F8D79
tetradic
#791F8D #8D421F #338D1F #1F6A8D
square
#791F8D #8D421F #338D1F #1F6A8D
split-complementary
#791F8D #6A8D1F #1F8D42
monochromatic
#230929 #4E145B #791F8D #A42ABF #BF4ED8

Accessibility & contrast

On white

8.77
#791F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#791F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F8D
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F8D#FFFFFF#000000##FFFFFF
##791F8D1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#284E8B
Tritanopia (blue-blind)
#793655
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #791f8d;
/* rgb */ color: rgb(121, 31, 141);
/* oklch */ color: oklch(43.5% 0.179 319.5);
Tailwind
colors: {
  custom: {
    50: '#a366af',
    500: '#791f8d',
    950: '#000000',
  },
}
SCSS
$custom: #791f8d;
$custom-light: #a366af;
$custom-dark: #000000;
JSON
{
  "hex": "#791f8d",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 289.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43504,
    "c": 0.17948,
    "h": 319.5
  },
  "luminance": 0.06968
}

Semantic roles & 50–950 ramp

primary
#791F8D
secondary
#61BB4D
accent
#E7415F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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