#791CA7#791CA7

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

Color values

HEX#791CA7
RGBrgb(121, 28, 167)
HSLhsl(280, 71%, 38%)
HSVhsv(280, 83%, 65%)
CMYKcmyk(27.5%, 83.2%, 0%, 34.5%)
CIE-LABlab(33.32, 59.25, -54.82)
CIE-LCHlch(33.32, 80.72, 317.22°)
OKLaboklab(45.22% 0.1338 -0.1556)
OKLCHoklch(45.22% 0.205 310.7)
XYZxyz(15.2741, 7.6858, 37.2306)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791CA7 #4AA71C
analogous
#331CA7 #791CA7 #A71C8F
triadic
#791CA7 #A7791C #1CA779
tetradic
#791CA7 #A7331C #4AA71C #1C8FA7
square
#791CA7 #A7331C #4AA71C #1C8FA7
split-complementary
#791CA7 #8FA71C #1CA733
monochromatic
#2D0A3E #531373 #791CA7 #9F26DB #B65AE3

Accessibility & contrast

On white

8.28
#791CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791CA7
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791CA7#FFFFFF#000000##FFFFFF
##791CA71.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#734164
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #791ca7;
/* rgb */ color: rgb(121, 28, 167);
/* oklch */ color: oklch(45.2% 0.205 310.7);
Tailwind
colors: {
  custom: {
    50: '#a566c2',
    500: '#791ca7',
    950: '#000000',
  },
}
SCSS
$custom: #791ca7;
$custom-light: #a566c2;
$custom-dark: #000000;
JSON
{
  "hex": "#791ca7",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 280.144,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4522,
    "c": 0.20522,
    "h": 310.7
  },
  "luminance": 0.07685
}

Semantic roles & 50–950 ramp

primary
#791CA7
secondary
#7DC758
accent
#EE3A75
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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