#791E8D#791E8D

#791E8D is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.180 H 319.5°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#791E8D
RGBrgb(121, 30, 141)
HSLhsl(289, 65%, 34%)
HSVhsv(289, 79%, 55%)
CMYKcmyk(14.2%, 78.7%, 0%, 44.7%)
CIE-LABlab(31.62, 53.40, -41.72)
CIE-LCHlch(31.62, 67.76, 322.00°)
OKLaboklab(43.42% 0.1373 -0.1171)
OKLCHoklch(43.42% 0.181 319.5)
XYZxyz(13.1565, 6.9172, 25.8363)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791E8D #328D1E
analogous
#411E8D #791E8D #8D1E69
triadic
#791E8D #8D791E #1E8D79
tetradic
#791E8D #8D411E #328D1E #1E698D
square
#791E8D #8D411E #328D1E #1E698D
split-complementary
#791E8D #698D1E #1E8D41
monochromatic
#220928 #4E135B #791E8D #A429BF #C04CD9

Accessibility & contrast

On white

8.81
#791E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#791E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791E8D
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791E8D#FFFFFF#000000##FFFFFF
##791E8D1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#274D8B
Tritanopia (blue-blind)
#793655
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791e8d;
/* rgb */ color: rgb(121, 30, 141);
/* oklch */ color: oklch(43.4% 0.180 319.5);
Tailwind
colors: {
  custom: {
    50: '#a365af',
    500: '#791e8d',
    950: '#000000',
  },
}
SCSS
$custom: #791e8d;
$custom-light: #a365af;
$custom-dark: #000000;
JSON
{
  "hex": "#791e8d",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 289.189,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43421,
    "c": 0.1805,
    "h": 319.5
  },
  "luminance": 0.06917
}

Semantic roles & 50–950 ramp

primary
#791E8D
secondary
#5FBC4B
accent
#E8405E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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