#791A79#791A79

#791A79 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.168 H 328.1°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#791A79
RGBrgb(121, 26, 121)
HSLhsl(300, 65%, 29%)
HSVhsv(300, 79%, 47%)
CMYKcmyk(0%, 78.5%, 0%, 52.5%)
CIE-LABlab(29.87, 51.03, -32.00)
CIE-LCHlch(29.87, 60.23, 327.91°)
OKLaboklab(41.77% 0.1424 -0.0887)
OKLCHoklch(41.77% 0.168 328.1)
XYZxyz(11.7056, 6.1851, 18.6628)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791A79 #1A791A
analogous
#4A1A79 #791A79 #791A4A
triadic
#791A79 #79791A #1A7979
tetradic
#791A79 #794A1A #1A791A #1A4A79
square
#791A79 #794A1A #1A791A #1A4A79
split-complementary
#791A79 #4A791A #1A794A
monochromatic
#190519 #470F47 #791A79 #AB25AB #D439D4

Accessibility & contrast

On white

9.39
#791A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#791A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791A79
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791A79#FFFFFF#000000##FFFFFF
##791A791.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033F7C
Deuteranopia (green-blind)
#354B77
Tritanopia (blue-blind)
#7D2A49
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #791a79;
/* rgb */ color: rgb(121, 26, 121);
/* oklch */ color: oklch(41.8% 0.168 328.1);
Tailwind
colors: {
  custom: {
    50: '#a363a0',
    500: '#791a79',
    950: '#000000',
  },
}
SCSS
$custom: #791a79;
$custom-light: #a363a0;
$custom-dark: #000000;
JSON
{
  "hex": "#791a79",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 300,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.4177,
    "c": 0.1678,
    "h": 328.1
  },
  "luminance": 0.06184
}

Semantic roles & 50–950 ramp

primary
#791A79
secondary
#41AD41
accent
#E84040
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #791A79

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

Preview Lab → · Contrast checker → · Palette generator →

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