#791C7C#791C7C

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

Color values

HEX#791C7C
RGBrgb(121, 28, 124)
HSLhsl(298, 63%, 30%)
HSVhsv(298, 77%, 49%)
CMYKcmyk(2.4%, 77.4%, 0%, 51.4%)
CIE-LABlab(30.28, 50.91, -33.25)
CIE-LCHlch(30.28, 60.80, 326.85°)
OKLaboklab(42.12% 0.1405 -0.0924)
OKLCHoklch(42.12% 0.168 326.7)
XYZxyz(11.9383, 6.3515, 19.6620)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791C7C #1F7C1C
analogous
#491C7C #791C7C #7C1C4F
triadic
#791C7C #7C791C #1C7C79
tetradic
#791C7C #7C491C #1F7C1C #1C4F7C
square
#791C7C #7C491C #1F7C1C #1C4F7C
split-complementary
#791C7C #4F7C1C #1C7C49
monochromatic
#180619 #48114A #791C7C #AA27AE #CF3FD4

Accessibility & contrast

On white

9.25
#791C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791C7C
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791C7C#FFFFFF#000000##FFFFFF
##791C7C1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#344B7A
Tritanopia (blue-blind)
#7C2C4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #791c7c;
/* rgb */ color: rgb(121, 28, 124);
/* oklch */ color: oklch(42.1% 0.168 326.7);
Tailwind
colors: {
  custom: {
    50: '#a364a2',
    500: '#791c7c',
    950: '#000000',
  },
}
SCSS
$custom: #791c7c;
$custom-light: #a364a2;
$custom-dark: #000000;
JSON
{
  "hex": "#791c7c",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 298.125,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.4212,
    "c": 0.16816,
    "h": 326.7
  },
  "luminance": 0.06351
}

Semantic roles & 50–950 ramp

primary
#791C7C
secondary
#47B044
accent
#E64247
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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