#791E82#791E82

#791E82 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.171 H 324.0°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#791E82
RGBrgb(121, 30, 130)
HSLhsl(295, 63%, 31%)
HSVhsv(295, 77%, 51%)
CMYKcmyk(6.9%, 76.9%, 0%, 49%)
CIE-LABlab(30.89, 51.32, -36.04)
CIE-LCHlch(30.89, 62.71, 324.92°)
OKLaboklab(42.67% 0.1384 -0.1005)
OKLCHoklch(42.67% 0.171 324)
XYZxyz(12.3783, 6.6060, 21.7379)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791E82 #27821E
analogous
#471E82 #791E82 #821E59
triadic
#791E82 #82791E #1E8279
tetradic
#791E82 #82471E #27821E #1E5982
square
#791E82 #82471E #27821E #1E5982
split-complementary
#791E82 #59821E #1E8247
monochromatic
#1C071F #4B1350 #791E82 #A729B4 #C846D4

Accessibility & contrast

On white

9.05
#791E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#791E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791E82
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791E82#FFFFFF#000000##FFFFFF
##791E821.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#314C80
Tritanopia (blue-blind)
#7B304F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #791e82;
/* rgb */ color: rgb(121, 30, 130);
/* oklch */ color: oklch(42.7% 0.171 324.0);
Tailwind
colors: {
  custom: {
    50: '#a365a7',
    500: '#791e82',
    950: '#000000',
  },
}
SCSS
$custom: #791e82;
$custom-light: #a365a7;
$custom-dark: #000000;
JSON
{
  "hex": "#791e82",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 294.6,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42674,
    "c": 0.17103,
    "h": 324
  },
  "luminance": 0.06605
}

Semantic roles & 50–950 ramp

primary
#791E82
secondary
#51B547
accent
#E64251
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791E82

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

Preview Lab → · Contrast checker → · Palette generator →

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