#791AA7#791AA7

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

Color values

HEX#791AA7
RGBrgb(121, 26, 167)
HSLhsl(280, 73%, 38%)
HSVhsv(280, 84%, 65%)
CMYKcmyk(27.5%, 84.4%, 0%, 34.5%)
CIE-LABlab(33.12, 59.83, -55.14)
CIE-LCHlch(33.12, 81.36, 317.33°)
OKLaboklab(45.08% 0.1352 -0.1565)
OKLCHoklch(45.08% 0.207 310.8)
XYZxyz(15.2282, 7.5941, 37.2153)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791AA7 #48A71A
analogous
#331AA7 #791AA7 #A71A8E
triadic
#791AA7 #A7791A #1AA779
tetradic
#791AA7 #A7331A #48A71A #1A8EA7
square
#791AA7 #A7331A #48A71A #1A8EA7
split-complementary
#791AA7 #8EA71A #1AA733
monochromatic
#2C0A3D #531272 #791AA7 #9F22DC #B657E5

Accessibility & contrast

On white

8.34
#791AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#791AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791AA7
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791AA7#FFFFFF#000000##FFFFFF
##791AA71.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#734063
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #791aa7;
/* rgb */ color: rgb(121, 26, 167);
/* oklch */ color: oklch(45.1% 0.207 310.8);
Tailwind
colors: {
  custom: {
    50: '#a565c2',
    500: '#791aa7',
    950: '#000000',
  },
}
SCSS
$custom: #791aa7;
$custom-light: #a565c2;
$custom-dark: #000000;
JSON
{
  "hex": "#791aa7",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 167
  },
  "hsl": {
    "h": 280.426,
    "s": 73.057,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45083,
    "c": 0.20682,
    "h": 310.8
  },
  "luminance": 0.07594
}

Semantic roles & 50–950 ramp

primary
#791AA7
secondary
#7AC855
accent
#F03874
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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