#791F88#791F88

#791F88 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.175 H 321.5°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#791F88
RGBrgb(121, 31, 136)
HSLhsl(291, 63%, 33%)
HSVhsv(291, 77%, 53%)
CMYKcmyk(11%, 77.2%, 0%, 46.7%)
CIE-LABlab(31.40, 52.10, -38.97)
CIE-LCHlch(31.40, 65.06, 323.20°)
OKLaboklab(43.16% 0.137 -0.1091)
OKLCHoklch(43.16% 0.175 321.5)
XYZxyz(12.8186, 6.8232, 23.9296)
Luminance0.0682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F88 #2E881F
analogous
#451F88 #791F88 #881F62
triadic
#791F88 #88791F #1F8879
tetradic
#791F88 #88451F #2E881F #1F6288
square
#791F88 #88451F #2E881F #1F6288
split-complementary
#791F88 #62881F #1F8845
monochromatic
#200824 #4D1456 #791F88 #A52ABA #C24BD6

Accessibility & contrast

On white

8.88
#791F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#791F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F88
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F88#FFFFFF#000000##FFFFFF
##791F881.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#2D4D86
Tritanopia (blue-blind)
#7A3452
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791f88;
/* rgb */ color: rgb(121, 31, 136);
/* oklch */ color: oklch(43.2% 0.175 321.5);
Tailwind
colors: {
  custom: {
    50: '#a365ab',
    500: '#791f88',
    950: '#000000',
  },
}
SCSS
$custom: #791f88;
$custom-light: #a365ab;
$custom-dark: #000000;
JSON
{
  "hex": "#791f88",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 291.429,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.4316,
    "c": 0.17511,
    "h": 321.5
  },
  "luminance": 0.06822
}

Semantic roles & 50–950 ramp

primary
#791F88
secondary
#5AB94A
accent
#E64259
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791F88

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

Preview Lab → · Contrast checker → · Palette generator →

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