#791E7B#791E7B

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

Color values

HEX#791E7B
RGBrgb(121, 30, 123)
HSLhsl(299, 61%, 30%)
HSVhsv(299, 76%, 48%)
CMYKcmyk(1.6%, 75.6%, 0%, 51.8%)
CIE-LABlab(30.46, 50.05, -32.34)
CIE-LCHlch(30.46, 59.59, 327.13°)
OKLaboklab(42.23% 0.1386 -0.0897)
OKLCHoklch(42.23% 0.165 327.1)
XYZxyz(11.9244, 6.4244, 19.3470)
Luminance0.0642 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791E7B #207B1E
analogous
#4B1E7B #791E7B #7B1E4E
triadic
#791E7B #7B791E #1E7B79
tetradic
#791E7B #7B4B1E #207B1E #1E4E7B
square
#791E7B #7B4B1E #207B1E #1E4E7B
split-complementary
#791E7B #4E7B1E #1E7B4B
monochromatic
#180619 #49124A #791E7B #A92AAC #CE42D1

Accessibility & contrast

On white

9.19
#791E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#791E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791E7B
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791E7B#FFFFFF#000000##FFFFFF
##791E7B1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07407E
Deuteranopia (green-blind)
#364C79
Tritanopia (blue-blind)
#7D2D4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791e7b;
/* rgb */ color: rgb(121, 30, 123);
/* oklch */ color: oklch(42.2% 0.165 327.1);
Tailwind
colors: {
  custom: {
    50: '#a364a1',
    500: '#791e7b',
    950: '#000000',
  },
}
SCSS
$custom: #791e7b;
$custom-light: #a364a1;
$custom-dark: #000000;
JSON
{
  "hex": "#791e7b",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 298.71,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.42226,
    "c": 0.16515,
    "h": 327.1
  },
  "luminance": 0.06424
}

Semantic roles & 50–950 ramp

primary
#791E7B
secondary
#49AE46
accent
#E44447
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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