#791B78#791B78

#791B78 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.166 H 328.5°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#791B78
RGBrgb(121, 27, 120)
HSLhsl(301, 64%, 29%)
HSVhsv(301, 78%, 47%)
CMYKcmyk(0%, 77.7%, 0.8%, 52.5%)
CIE-LABlab(29.93, 50.54, -31.29)
CIE-LCHlch(29.93, 59.44, 328.24°)
OKLaboklab(41.79% 0.1415 -0.0867)
OKLCHoklch(41.79% 0.166 328.5)
XYZxyz(11.6671, 6.2058, 18.3490)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B78 #1B791C
analogous
#4B1B79 #791B78 #791B49
triadic
#791B78 #78791B #1B7879
tetradic
#791B78 #794B1B #1B791C #1B4979
square
#791B78 #794B1B #1B791C #1B4979
split-complementary
#791B78 #49791B #1B794B
monochromatic
#190619 #471046 #791B78 #AB26AA #D33BD2

Accessibility & contrast

On white

9.37
#791B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#791B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B78
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B78#FFFFFF#000000##FFFFFF
##791B781.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073F7A
Deuteranopia (green-blind)
#364B76
Tritanopia (blue-blind)
#7D2A48
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #791b78;
/* rgb */ color: rgb(121, 27, 120);
/* oklch */ color: oklch(41.8% 0.166 328.5);
Tailwind
colors: {
  custom: {
    50: '#a3639f',
    500: '#791b78',
    950: '#000000',
  },
}
SCSS
$custom: #791b78;
$custom-light: #a3639f;
$custom-dark: #000000;
JSON
{
  "hex": "#791b78",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 300.638,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41787,
    "c": 0.16596,
    "h": 328.5
  },
  "luminance": 0.06205
}

Semantic roles & 50–950 ramp

primary
#791B78
secondary
#43AD44
accent
#E74341
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #791B78

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

Preview Lab → · Contrast checker → · Palette generator →

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