#791C7B#791C7B

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

Color values

HEX#791C7B
RGBrgb(121, 28, 123)
HSLhsl(299, 63%, 30%)
HSVhsv(299, 77%, 48%)
CMYKcmyk(1.6%, 77.2%, 0%, 51.8%)
CIE-LABlab(30.22, 50.73, -32.71)
CIE-LCHlch(30.22, 60.36, 327.18°)
OKLaboklab(42.06% 0.1406 -0.0908)
OKLCHoklch(42.06% 0.167 327.1)
XYZxyz(11.8754, 6.3264, 19.3307)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791C7B #1E7B1C
analogous
#4A1C7B #791C7B #7B1C4E
triadic
#791C7B #7B791C #1C7B79
tetradic
#791C7B #7B4A1C #1E7B1C #1C4E7B
square
#791C7B #7B4A1C #1E7B1C #1C4E7B
split-complementary
#791C7B #4E7B1C #1C7B4A
monochromatic
#190619 #481149 #791C7B #AA27AD #D03ED3

Accessibility & contrast

On white

9.27
#791C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791C7B
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791C7B#FFFFFF#000000##FFFFFF
##791C7B1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #791c7b;
/* rgb */ color: rgb(121, 28, 123);
/* oklch */ color: oklch(42.1% 0.167 327.1);
Tailwind
colors: {
  custom: {
    50: '#a364a1',
    500: '#791c7b',
    950: '#000000',
  },
}
SCSS
$custom: #791c7b;
$custom-light: #a364a1;
$custom-dark: #000000;
JSON
{
  "hex": "#791c7b",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 298.737,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42056,
    "c": 0.16734,
    "h": 327.1
  },
  "luminance": 0.06326
}

Semantic roles & 50–950 ramp

primary
#791C7B
secondary
#46AF44
accent
#E64245
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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