#791CA6#791CA6

#791CA6 is a mid, highly saturated purple. Relative luminance 0.076; OKLCH L 45.1% C 0.204 H 311.0°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#791CA6
RGBrgb(121, 28, 166)
HSLhsl(280, 71%, 38%)
HSVhsv(280, 83%, 65%)
CMYKcmyk(27.1%, 83.1%, 0%, 34.9%)
CIE-LABlab(33.24, 59.04, -54.35)
CIE-LCHlch(33.24, 80.25, 317.37°)
OKLaboklab(45.14% 0.1341 -0.1542)
OKLCHoklch(45.14% 0.204 311)
XYZxyz(15.1820, 7.6490, 36.7456)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791CA6 #49A61C
analogous
#341CA6 #791CA6 #A61C8E
triadic
#791CA6 #A6791C #1CA679
tetradic
#791CA6 #A6341C #49A61C #1C8EA6
square
#791CA6 #A6341C #49A61C #1C8EA6
split-complementary
#791CA6 #8EA61C #1CA634
monochromatic
#2D0A3D #531372 #791CA6 #9F25DA #B659E3

Accessibility & contrast

On white

8.30
#791CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#791CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791CA6
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791CA6#FFFFFF#000000##FFFFFF
##791CA61.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.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: #791ca6;
/* rgb */ color: rgb(121, 28, 166);
/* oklch */ color: oklch(45.1% 0.204 311.0);
Tailwind
colors: {
  custom: {
    50: '#a566c1',
    500: '#791ca6',
    950: '#000000',
  },
}
SCSS
$custom: #791ca6;
$custom-light: #a566c1;
$custom-dark: #000000;
JSON
{
  "hex": "#791ca6",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 166
  },
  "hsl": {
    "h": 280.435,
    "s": 71.134,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45141,
    "c": 0.20434,
    "h": 311
  },
  "luminance": 0.07649
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #791CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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