#791DA6#791DA6

#791DA6 is a mid, highly saturated purple. Relative luminance 0.077; OKLCH L 45.2% C 0.204 H 310.9°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#791DA6
RGBrgb(121, 29, 166)
HSLhsl(280, 70%, 38%)
HSVhsv(280, 83%, 65%)
CMYKcmyk(27.1%, 82.5%, 0%, 34.9%)
CIE-LABlab(33.34, 58.74, -54.18)
CIE-LCHlch(33.34, 79.91, 317.31°)
OKLaboklab(45.21% 0.1334 -0.1537)
OKLCHoklch(45.21% 0.204 310.9)
XYZxyz(15.2061, 7.6972, 36.7537)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791DA6 #4AA61D
analogous
#341DA6 #791DA6 #A61D8E
triadic
#791DA6 #A6791D #1DA679
tetradic
#791DA6 #A6341D #4AA61D #1D8EA6
square
#791DA6 #A6341D #4AA61D #1D8EA6
split-complementary
#791DA6 #8EA61D #1DA634
monochromatic
#2D0B3E #531472 #791DA6 #9F27D9 #B65BE2

Accessibility & contrast

On white

8.27
#791DA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#791DA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791DA6
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791DA6#FFFFFF#000000##FFFFFF
##791DA61.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#734163
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #791da6;
/* rgb */ color: rgb(121, 29, 166);
/* oklch */ color: oklch(45.2% 0.204 310.9);
Tailwind
colors: {
  custom: {
    50: '#a566c1',
    500: '#791da6',
    950: '#000000',
  },
}
SCSS
$custom: #791da6;
$custom-light: #a566c1;
$custom-dark: #000000;
JSON
{
  "hex": "#791da6",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 166
  },
  "hsl": {
    "h": 280.292,
    "s": 70.256,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45212,
    "c": 0.20351,
    "h": 310.9
  },
  "luminance": 0.07697
}

Semantic roles & 50–950 ramp

primary
#791DA6
secondary
#7DC659
accent
#ED3B75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791DA6

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

Preview Lab → · Contrast checker → · Palette generator →

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