#791D7B#791D7B

#791D7B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.166 H 327.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#791D7B
RGBrgb(121, 29, 123)
HSLhsl(299, 62%, 30%)
HSVhsv(299, 76%, 48%)
CMYKcmyk(1.6%, 76.4%, 0%, 51.8%)
CIE-LABlab(30.34, 50.40, -32.53)
CIE-LCHlch(30.34, 59.98, 327.16°)
OKLaboklab(42.14% 0.1396 -0.0903)
OKLCHoklch(42.14% 0.166 327.1)
XYZxyz(11.8995, 6.3746, 19.3387)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D7B #1F7B1D
analogous
#4A1D7B #791D7B #7B1D4E
triadic
#791D7B #7B791D #1D7B79
tetradic
#791D7B #7B4A1D #1F7B1D #1D4E7B
square
#791D7B #7B4A1D #1F7B1D #1D4E7B
split-complementary
#791D7B #4E7B1D #1D7B4A
monochromatic
#180619 #481149 #791D7B #AA29AD #CF40D2

Accessibility & contrast

On white

9.23
#791D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#791D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791D7B
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791D7B#FFFFFF#000000##FFFFFF
##791D7B1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05407E
Deuteranopia (green-blind)
#354B79
Tritanopia (blue-blind)
#7D2C4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #791d7b;
/* rgb */ color: rgb(121, 29, 123);
/* oklch */ color: oklch(42.1% 0.166 327.1);
Tailwind
colors: {
  custom: {
    50: '#a364a1',
    500: '#791d7b',
    950: '#000000',
  },
}
SCSS
$custom: #791d7b;
$custom-light: #a364a1;
$custom-dark: #000000;
JSON
{
  "hex": "#791d7b",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 298.723,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.4214,
    "c": 0.16625,
    "h": 327.1
  },
  "luminance": 0.06374
}

Semantic roles & 50–950 ramp

primary
#791D7B
secondary
#47AF45
accent
#E54346
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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