#791E8B#791E8B

#791E8B is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.179 H 320.3°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#791E8B
RGBrgb(121, 30, 139)
HSLhsl(290, 64%, 33%)
HSVhsv(290, 78%, 55%)
CMYKcmyk(12.9%, 78.4%, 0%, 45.5%)
CIE-LABlab(31.48, 53.01, -40.70)
CIE-LCHlch(31.48, 66.83, 322.48°)
OKLaboklab(43.28% 0.1376 -0.1142)
OKLCHoklch(43.28% 0.179 320.3)
XYZxyz(13.0091, 6.8583, 25.0596)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791E8B #308B1E
analogous
#421E8B #791E8B #8B1E66
triadic
#791E8B #8B791E #1E8B79
tetradic
#791E8B #8B421E #308B1E #1E668B
square
#791E8B #8B421E #308B1E #1E668B
split-complementary
#791E8B #668B1E #1E8B42
monochromatic
#210826 #4D1359 #791E8B #A529BD #C14BD8

Accessibility & contrast

On white

8.85
#791E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#791E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791E8B
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791E8B#FFFFFF#000000##FFFFFF
##791E8B1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#294D89
Tritanopia (blue-blind)
#793554
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791e8b;
/* rgb */ color: rgb(121, 30, 139);
/* oklch */ color: oklch(43.3% 0.179 320.3);
Tailwind
colors: {
  custom: {
    50: '#a365ad',
    500: '#791e8b',
    950: '#000000',
  },
}
SCSS
$custom: #791e8b;
$custom-light: #a365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#791e8b",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 290.092,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43282,
    "c": 0.17877,
    "h": 320.3
  },
  "luminance": 0.06858
}

Semantic roles & 50–950 ramp

primary
#791E8B
secondary
#5DBB4A
accent
#E7405C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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