#791D9F#791D9F

#791D9F is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.7% C 0.197 H 313.2°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#791D9F
RGBrgb(121, 29, 159)
HSLhsl(282, 69%, 37%)
HSVhsv(282, 82%, 62%)
CMYKcmyk(23.9%, 81.8%, 0%, 37.6%)
CIE-LABlab(32.80, 57.30, -50.82)
CIE-LCHlch(32.80, 76.59, 318.43°)
OKLaboklab(44.67% 0.135 -0.1439)
OKLCHoklch(44.67% 0.197 313.2)
XYZxyz(14.5814, 7.4473, 33.4635)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D9F #439F1D
analogous
#381D9F #791D9F #9F1D84
triadic
#791D9F #9F791D #1D9F79
tetradic
#791D9F #9F381D #439F1D #1D849F
square
#791D9F #9F381D #439F1D #1D849F
split-complementary
#791D9F #849F1D #1D9F38
monochromatic
#2A0A37 #52146B #791D9F #A026D3 #B856E0

Accessibility & contrast

On white

8.44
#791D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#791D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791D9F
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791D9F#FFFFFF#000000##FFFFFF
##791D9F1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#064F9C
Tritanopia (blue-blind)
#753E5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #791d9f;
/* rgb */ color: rgb(121, 29, 159);
/* oklch */ color: oklch(44.7% 0.197 313.2);
Tailwind
colors: {
  custom: {
    50: '#a466bc',
    500: '#791d9f',
    950: '#000000',
  },
}
SCSS
$custom: #791d9f;
$custom-light: #a466bc;
$custom-dark: #000000;
JSON
{
  "hex": "#791d9f",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 282.462,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44666,
    "c": 0.19729,
    "h": 313.2
  },
  "luminance": 0.07447
}

Semantic roles & 50–950 ramp

primary
#791D9F
secondary
#75C454
accent
#EC3C6F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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