#791AA1#791AA1

#791AA1 is a dark, highly saturated purple. Relative luminance 0.074; OKLCH L 44.6% C 0.202 H 312.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#791AA1
RGBrgb(121, 26, 161)
HSLhsl(282, 72%, 37%)
HSVhsv(282, 84%, 63%)
CMYKcmyk(24.8%, 83.9%, 0%, 36.9%)
CIE-LABlab(32.65, 58.60, -52.28)
CIE-LCHlch(32.65, 78.54, 318.26°)
OKLaboklab(44.61% 0.1367 -0.1481)
OKLCHoklch(44.61% 0.202 312.7)
XYZxyz(14.6864, 7.3774, 34.3616)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791AA1 #42A11A
analogous
#351AA1 #791AA1 #A11A86
triadic
#791AA1 #A1791A #1AA179
tetradic
#791AA1 #A1351A #42A11A #1A86A1
square
#791AA1 #A1351A #42A11A #1A86A1
split-complementary
#791AA1 #86A11A #1AA135
monochromatic
#2A0938 #51116C #791AA1 #A123D6 #B852E3

Accessibility & contrast

On white

8.48
#791AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#791AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791AA1
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791AA1#FFFFFF#000000##FFFFFF
##791AA11.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#004F9E
Tritanopia (blue-blind)
#743D60
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #791aa1;
/* rgb */ color: rgb(121, 26, 161);
/* oklch */ color: oklch(44.6% 0.202 312.7);
Tailwind
colors: {
  custom: {
    50: '#a565be',
    500: '#791aa1',
    950: '#000000',
  },
}
SCSS
$custom: #791aa1;
$custom-light: #a565be;
$custom-dark: #000000;
JSON
{
  "hex": "#791aa1",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 282.222,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44607,
    "c": 0.20157,
    "h": 312.7
  },
  "luminance": 0.07377
}

Semantic roles & 50–950 ramp

primary
#791AA1
secondary
#74C651
accent
#EF396F
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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