#791FA6#791FA6

#791FA6 is a mid, highly saturated purple. Relative luminance 0.078; OKLCH L 45.4% C 0.202 H 310.8°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#791FA6
RGBrgb(121, 31, 166)
HSLhsl(280, 69%, 39%)
HSVhsv(280, 81%, 65%)
CMYKcmyk(27.1%, 81.3%, 0%, 34.9%)
CIE-LABlab(33.56, 58.11, -53.83)
CIE-LCHlch(33.56, 79.21, 317.19°)
OKLaboklab(45.36% 0.1319 -0.1527)
OKLCHoklch(45.36% 0.202 310.8)
XYZxyz(15.2567, 7.7985, 36.7706)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791FA6 #4CA61F
analogous
#351FA6 #791FA6 #A61F8F
triadic
#791FA6 #A6791F #1FA679
tetradic
#791FA6 #A6351F #4CA61F #1F8FA6
square
#791FA6 #A6351F #4CA61F #1F8FA6
split-complementary
#791FA6 #8FA61F #1FA635
monochromatic
#2E0C3F #531572 #791FA6 #9E2BD7 #B55EE1

Accessibility & contrast

On white

8.20
#791FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#791FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791FA6
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791FA6#FFFFFF#000000##FFFFFF
##791FA61.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAA
Deuteranopia (green-blind)
#0050A3
Tritanopia (blue-blind)
#734264
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #791fa6;
/* rgb */ color: rgb(121, 31, 166);
/* oklch */ color: oklch(45.4% 0.202 310.8);
Tailwind
colors: {
  custom: {
    50: '#a567c1',
    500: '#791fa6',
    950: '#000000',
  },
}
SCSS
$custom: #791fa6;
$custom-light: #a567c1;
$custom-dark: #000000;
JSON
{
  "hex": "#791fa6",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 280,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45363,
    "c": 0.20176,
    "h": 310.8
  },
  "luminance": 0.07798
}

Semantic roles & 50–950 ramp

primary
#791FA6
secondary
#7FC55B
accent
#EB3C77
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #791FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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