#791C7D#791C7D

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

Color values

HEX#791C7D
RGBrgb(121, 28, 125)
HSLhsl(298, 63%, 30%)
HSVhsv(298, 78%, 49%)
CMYKcmyk(3.2%, 77.6%, 0%, 51%)
CIE-LABlab(30.34, 51.09, -33.78)
CIE-LCHlch(30.34, 61.24, 326.53°)
OKLaboklab(42.18% 0.1405 -0.0939)
OKLCHoklch(42.18% 0.169 326.2)
XYZxyz(12.0019, 6.3769, 19.9968)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791C7D #207D1C
analogous
#491C7D #791C7D #7D1C50
triadic
#791C7D #7D791C #1C7D79
tetradic
#791C7D #7D491C #207D1C #1C507D
square
#791C7D #7D491C #207D1C #1C507D
split-complementary
#791C7D #507D1C #1C7D49
monochromatic
#180619 #49114B #791C7D #A927AF #CE3FD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##791C7D#FFFFFF#000000##FFFFFF
##791C7D1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#334B7B
Tritanopia (blue-blind)
#7C2D4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #791c7d;
/* rgb */ color: rgb(121, 28, 125);
/* oklch */ color: oklch(42.2% 0.169 326.2);
Tailwind
colors: {
  custom: {
    50: '#a364a3',
    500: '#791c7d',
    950: '#000000',
  },
}
SCSS
$custom: #791c7d;
$custom-light: #a364a3;
$custom-dark: #000000;
JSON
{
  "hex": "#791c7d",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 297.526,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.42183,
    "c": 0.16898,
    "h": 326.2
  },
  "luminance": 0.06376
}

Semantic roles & 50–950 ramp

primary
#791C7D
secondary
#49B144
accent
#E64148
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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