#791F7E#791F7E

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

Color values

HEX#791F7E
RGBrgb(121, 31, 126)
HSLhsl(297, 61%, 31%)
HSVhsv(297, 75%, 49%)
CMYKcmyk(4%, 75.4%, 0%, 50.6%)
CIE-LABlab(30.76, 50.24, -33.74)
CIE-LCHlch(30.76, 60.52, 326.12°)
OKLaboklab(42.5% 0.1376 -0.0938)
OKLCHoklch(42.5% 0.167 325.7)
XYZxyz(12.1408, 6.5521, 20.3598)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F7E #247E1F
analogous
#491F7E #791F7E #7E1F53
triadic
#791F7E #7E791F #1F7E79
tetradic
#791F7E #7E491F #247E1F #1F537E
square
#791F7E #7E491F #247E1F #1F537E
split-complementary
#791F7E #537E1F #1F7E49
monochromatic
#1B071C #4A134D #791F7E #A82BAF #CA46D1

Accessibility & contrast

On white

9.09
#791F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791F7E
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F7E#FFFFFF#000000##FFFFFF
##791F7E1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034181
Deuteranopia (green-blind)
#344C7C
Tritanopia (blue-blind)
#7C2F4D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791f7e;
/* rgb */ color: rgb(121, 31, 126);
/* oklch */ color: oklch(42.5% 0.167 325.7);
Tailwind
colors: {
  custom: {
    50: '#a365a4',
    500: '#791f7e',
    950: '#000000',
  },
}
SCSS
$custom: #791f7e;
$custom-light: #a365a4;
$custom-dark: #000000;
JSON
{
  "hex": "#791f7e",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 296.842,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42503,
    "c": 0.16652,
    "h": 325.7
  },
  "luminance": 0.06551
}

Semantic roles & 50–950 ramp

primary
#791F7E
secondary
#4DB148
accent
#E4444D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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