#791F7F#791F7F

#791F7F is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.167 H 325.3°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#791F7F
RGBrgb(121, 31, 127)
HSLhsl(296, 61%, 31%)
HSVhsv(296, 76%, 50%)
CMYKcmyk(4.7%, 75.6%, 0%, 50.2%)
CIE-LABlab(30.83, 50.42, -34.27)
CIE-LCHlch(30.83, 60.96, 325.80°)
OKLaboklab(42.57% 0.1376 -0.0954)
OKLCHoklch(42.57% 0.167 325.3)
XYZxyz(12.2056, 6.5780, 20.7014)
Luminance0.0658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F7F #257F1F
analogous
#491F7F #791F7F #7F1F55
triadic
#791F7F #7F791F #1F7F79
tetradic
#791F7F #7F491F #257F1F #1F557F
square
#791F7F #7F491F #257F1F #1F557F
split-complementary
#791F7F #557F1F #1F7F49
monochromatic
#1B071D #4A134E #791F7F #A82BB0 #C946D2

Accessibility & contrast

On white

9.07
#791F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#791F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F7F
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F7F#FFFFFF#000000##FFFFFF
##791F7F1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004282
Deuteranopia (green-blind)
#334C7D
Tritanopia (blue-blind)
#7C304D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #791f7f;
/* rgb */ color: rgb(121, 31, 127);
/* oklch */ color: oklch(42.6% 0.167 325.3);
Tailwind
colors: {
  custom: {
    50: '#a365a4',
    500: '#791f7f',
    950: '#000000',
  },
}
SCSS
$custom: #791f7f;
$custom-light: #a365a4;
$custom-dark: #000000;
JSON
{
  "hex": "#791f7f",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 296.25,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42567,
    "c": 0.16738,
    "h": 325.3
  },
  "luminance": 0.06577
}

Semantic roles & 50–950 ramp

primary
#791F7F
secondary
#4EB248
accent
#E4444E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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