#791E7C#791E7C

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

Color values

HEX#791E7C
RGBrgb(121, 30, 124)
HSLhsl(298, 61%, 30%)
HSVhsv(298, 76%, 49%)
CMYKcmyk(2.4%, 75.8%, 0%, 51.4%)
CIE-LABlab(30.52, 50.23, -32.87)
CIE-LCHlch(30.52, 60.03, 326.80°)
OKLaboklab(42.29% 0.1386 -0.0913)
OKLCHoklch(42.29% 0.166 326.6)
XYZxyz(11.9873, 6.4496, 19.6784)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791E7C #217C1E
analogous
#4A1E7C #791E7C #7C1E50
triadic
#791E7C #7C791E #1E7C79
tetradic
#791E7C #7C4A1E #217C1E #1E507C
square
#791E7C #7C4A1E #217C1E #1E507C
split-complementary
#791E7C #507C1E #1E7C4A
monochromatic
#190619 #49124B #791E7C #A92AAD #CD43D1

Accessibility & contrast

On white

9.17
#791E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#791E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791E7C
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791E7C#FFFFFF#000000##FFFFFF
##791E7C1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05417F
Deuteranopia (green-blind)
#354C7A
Tritanopia (blue-blind)
#7C2E4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791e7c;
/* rgb */ color: rgb(121, 30, 124);
/* oklch */ color: oklch(42.3% 0.166 326.6);
Tailwind
colors: {
  custom: {
    50: '#a364a2',
    500: '#791e7c',
    950: '#000000',
  },
}
SCSS
$custom: #791e7c;
$custom-light: #a364a2;
$custom-dark: #000000;
JSON
{
  "hex": "#791e7c",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 298.085,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42289,
    "c": 0.16598,
    "h": 326.6
  },
  "luminance": 0.06449
}

Semantic roles & 50–950 ramp

primary
#791E7C
secondary
#4AAF46
accent
#E44449
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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