#791E8A#791E8A

#791E8A is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.178 H 320.7°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#791E8A
RGBrgb(121, 30, 138)
HSLhsl(291, 64%, 33%)
HSVhsv(291, 78%, 54%)
CMYKcmyk(12.3%, 78.3%, 0%, 45.9%)
CIE-LABlab(31.41, 52.82, -40.19)
CIE-LCHlch(31.41, 66.37, 322.73°)
OKLaboklab(43.21% 0.1377 -0.1127)
OKLCHoklch(43.21% 0.178 320.7)
XYZxyz(12.9363, 6.8292, 24.6766)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791E8A #2F8A1E
analogous
#431E8A #791E8A #8A1E65
triadic
#791E8A #8A791E #1E8A79
tetradic
#791E8A #8A431E #2F8A1E #1E658A
square
#791E8A #8A431E #2F8A1E #1E658A
split-complementary
#791E8A #658A1E #1E8A43
monochromatic
#210825 #4D1358 #791E8A #A529BC #C24BD8

Accessibility & contrast

On white

8.88
#791E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791E8A
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791E8A#FFFFFF#000000##FFFFFF
##791E8A1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#2A4D88
Tritanopia (blue-blind)
#7A3453
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791e8a;
/* rgb */ color: rgb(121, 30, 138);
/* oklch */ color: oklch(43.2% 0.178 320.7);
Tailwind
colors: {
  custom: {
    50: '#a365ad',
    500: '#791e8a',
    950: '#000000',
  },
}
SCSS
$custom: #791e8a;
$custom-light: #a365ad;
$custom-dark: #000000;
JSON
{
  "hex": "#791e8a",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 290.556,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43212,
    "c": 0.1779,
    "h": 320.7
  },
  "luminance": 0.06828
}

Semantic roles & 50–950 ramp

primary
#791E8A
secondary
#5BBA4A
accent
#E7415B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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