#791F7A#791F7A

#791F7A is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.163 H 327.5°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#791F7A
RGBrgb(121, 31, 122)
HSLhsl(299, 59%, 30%)
HSVhsv(299, 75%, 48%)
CMYKcmyk(0.8%, 74.6%, 0%, 52.2%)
CIE-LABlab(30.52, 49.52, -31.60)
CIE-LCHlch(30.52, 58.75, 327.45°)
OKLaboklab(42.25% 0.1377 -0.0876)
OKLCHoklch(42.25% 0.163 327.5)
XYZxyz(11.8878, 6.4509, 19.0276)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F7A #207A1F
analogous
#4C1F7A #791F7A #7A1F4D
triadic
#791F7A #7A791F #1F7A79
tetradic
#791F7A #7A4C1F #207A1F #1F4D7A
square
#791F7A #7A4C1F #207A1F #1F4D7A
split-complementary
#791F7A #4D7A1F #1F7A4C
monochromatic
#180618 #491349 #791F7A #A92BAB #CE44CF

Accessibility & contrast

On white

9.17
#791F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#791F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F7A
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F7A#FFFFFF#000000##FFFFFF
##791F7A1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C407D
Deuteranopia (green-blind)
#374C78
Tritanopia (blue-blind)
#7D2D4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791f7a;
/* rgb */ color: rgb(121, 31, 122);
/* oklch */ color: oklch(42.3% 0.163 327.5);
Tailwind
colors: {
  custom: {
    50: '#a365a1',
    500: '#791f7a',
    950: '#000000',
  },
}
SCSS
$custom: #791f7a;
$custom-light: #a365a1;
$custom-dark: #000000;
JSON
{
  "hex": "#791f7a",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 299.341,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.42252,
    "c": 0.16317,
    "h": 327.5
  },
  "luminance": 0.0645
}

Semantic roles & 50–950 ramp

primary
#791F7A
secondary
#49AD47
accent
#E34547
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #791F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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