#791B88#791B88

#791B88 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.179 H 321.6°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#791B88
RGBrgb(121, 27, 136)
HSLhsl(292, 67%, 32%)
HSVhsv(292, 80%, 53%)
CMYKcmyk(11%, 80.1%, 0%, 46.7%)
CIE-LABlab(30.94, 53.42, -39.70)
CIE-LCHlch(30.94, 66.56, 323.38°)
OKLaboklab(42.84% 0.1405 -0.1112)
OKLCHoklch(42.84% 0.179 321.6)
XYZxyz(12.7205, 6.6271, 23.8969)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B88 #2A881B
analogous
#431B88 #791B88 #881B61
triadic
#791B88 #88791B #1B8879
tetradic
#791B88 #88431B #2A881B #1B6188
square
#791B88 #88431B #2A881B #1B6188
split-complementary
#791B88 #61881B #1B8843
monochromatic
#1E0722 #4C1155 #791B88 #A625BB #C544DA

Accessibility & contrast

On white

9.03
#791B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#791B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B88
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B88#FFFFFF#000000##FFFFFF
##791B881.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428B
Deuteranopia (green-blind)
#2A4C86
Tritanopia (blue-blind)
#7A3251
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #791b88;
/* rgb */ color: rgb(121, 27, 136);
/* oklch */ color: oklch(42.8% 0.179 321.6);
Tailwind
colors: {
  custom: {
    50: '#a364ab',
    500: '#791b88',
    950: '#000000',
  },
}
SCSS
$custom: #791b88;
$custom-light: #a364ab;
$custom-dark: #000000;
JSON
{
  "hex": "#791b88",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 291.743,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42835,
    "c": 0.1792,
    "h": 321.6
  },
  "luminance": 0.06626
}

Semantic roles & 50–950 ramp

primary
#791B88
secondary
#54BB44
accent
#EA3E56
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791B88

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

Preview Lab → · Contrast checker → · Palette generator →

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