#791A7D#791A7D

#791A7D is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.171 H 326.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#791A7D
RGBrgb(121, 26, 125)
HSLhsl(298, 66%, 30%)
HSVhsv(298, 79%, 49%)
CMYKcmyk(3.2%, 79.2%, 0%, 51%)
CIE-LABlab(30.12, 51.73, -34.14)
CIE-LCHlch(30.12, 61.98, 326.58°)
OKLaboklab(42.02% 0.1423 -0.0949)
OKLCHoklch(42.02% 0.171 326.3)
XYZxyz(11.9560, 6.2852, 19.9815)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791A7D #1E7D1A
analogous
#481A7D #791A7D #7D1A50
triadic
#791A7D #7D791A #1A7D79
tetradic
#791A7D #7D481A #1E7D1A #1A507D
square
#791A7D #7D481A #1E7D1A #1A507D
split-complementary
#791A7D #507D1A #1A7D48
monochromatic
#190519 #480F4A #791A7D #AA25B0 #D03BD6

Accessibility & contrast

On white

9.31
#791A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#791A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791A7D
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791A7D#FFFFFF#000000##FFFFFF
##791A7D1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#324B7B
Tritanopia (blue-blind)
#7C2C4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #791a7d;
/* rgb */ color: rgb(121, 26, 125);
/* oklch */ color: oklch(42.0% 0.171 326.3);
Tailwind
colors: {
  custom: {
    50: '#a363a3',
    500: '#791a7d',
    950: '#000000',
  },
}
SCSS
$custom: #791a7d;
$custom-light: #a363a3;
$custom-dark: #000000;
JSON
{
  "hex": "#791a7d",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 297.576,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42024,
    "c": 0.17104,
    "h": 326.3
  },
  "luminance": 0.06284
}

Semantic roles & 50–950 ramp

primary
#791A7D
secondary
#46B142
accent
#E93F46
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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