#791D9E#791D9E

#791D9E is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.196 H 313.5°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#791D9E
RGBrgb(121, 29, 158)
HSLhsl(283, 69%, 37%)
HSVhsv(283, 82%, 62%)
CMYKcmyk(23.4%, 81.6%, 0%, 38%)
CIE-LABlab(32.73, 57.10, -50.34)
CIE-LCHlch(32.73, 76.12, 318.60°)
OKLaboklab(44.59% 0.1352 -0.1424)
OKLCHoklch(44.59% 0.196 313.5)
XYZxyz(14.4950, 7.4128, 33.0084)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D9E #429E1D
analogous
#391D9E #791D9E #9E1D83
triadic
#791D9E #9E791D #1D9E79
tetradic
#791D9E #9E391D #429E1D #1D839E
square
#791D9E #9E391D #429E1D #1D839E
split-complementary
#791D9E #839E1D #1D9E39
monochromatic
#2A0A37 #51146A #791D9E #A126D2 #B856E0

Accessibility & contrast

On white

8.46
#791D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#791D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791D9E
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791D9E#FFFFFF#000000##FFFFFF
##791D9E1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#094F9B
Tritanopia (blue-blind)
#753D5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #791d9e;
/* rgb */ color: rgb(121, 29, 158);
/* oklch */ color: oklch(44.6% 0.196 313.5);
Tailwind
colors: {
  custom: {
    50: '#a466bb',
    500: '#791d9e',
    950: '#000000',
  },
}
SCSS
$custom: #791d9e;
$custom-light: #a466bb;
$custom-dark: #000000;
JSON
{
  "hex": "#791d9e",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 282.791,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44589,
    "c": 0.1964,
    "h": 313.5
  },
  "luminance": 0.07412
}

Semantic roles & 50–950 ramp

primary
#791D9E
secondary
#74C354
accent
#EC3C6E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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