#791E7F#791E7F

#791E7F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.168 H 325.3°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#791E7F
RGBrgb(121, 30, 127)
HSLhsl(296, 62%, 31%)
HSVhsv(296, 76%, 50%)
CMYKcmyk(4.7%, 76.4%, 0%, 50.2%)
CIE-LABlab(30.70, 50.77, -34.46)
CIE-LCHlch(30.70, 61.36, 325.83°)
OKLaboklab(42.48% 0.1385 -0.0959)
OKLCHoklch(42.48% 0.168 325.3)
XYZxyz(12.1799, 6.5266, 20.6928)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791E7F #247F1E
analogous
#481E7F #791E7F #7F1E54
triadic
#791E7F #7F791E #1E7F79
tetradic
#791E7F #7F481E #247F1E #1E547F
square
#791E7F #7F481E #247F1E #1E547F
split-complementary
#791E7F #547F1E #1E7F48
monochromatic
#1B071C #4A124D #791E7F #A82AB1 #CA44D3

Accessibility & contrast

On white

9.11
#791E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#791E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791E7F
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791E7F#FFFFFF#000000##FFFFFF
##791E7F1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#334C7D
Tritanopia (blue-blind)
#7C2F4D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791e7f;
/* rgb */ color: rgb(121, 30, 127);
/* oklch */ color: oklch(42.5% 0.168 325.3);
Tailwind
colors: {
  custom: {
    50: '#a365a4',
    500: '#791e7f',
    950: '#000000',
  },
}
SCSS
$custom: #791e7f;
$custom-light: #a365a4;
$custom-dark: #000000;
JSON
{
  "hex": "#791e7f",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 296.289,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.4248,
    "c": 0.16849,
    "h": 325.3
  },
  "luminance": 0.06526
}

Semantic roles & 50–950 ramp

primary
#791E7F
secondary
#4DB247
accent
#E5434D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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