#791B7E#791B7E

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

Color values

HEX#791B7E
RGBrgb(121, 27, 126)
HSLhsl(297, 65%, 30%)
HSVhsv(297, 79%, 49%)
CMYKcmyk(4%, 78.6%, 0%, 50.6%)
CIE-LABlab(30.29, 51.59, -34.49)
CIE-LCHlch(30.29, 62.06, 326.24°)
OKLaboklab(42.17% 0.1413 -0.096)
OKLCHoklch(42.17% 0.171 325.8)
XYZxyz(12.0427, 6.3560, 20.3272)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B7E #207E1B
analogous
#481B7E #791B7E #7E1B51
triadic
#791B7E #7E791B #1B7E79
tetradic
#791B7E #7E481B #207E1B #1B517E
square
#791B7E #7E481B #207E1B #1B517E
split-complementary
#791B7E #517E1B #1B7E48
monochromatic
#180519 #49104C #791B7E #A926B0 #CE3ED6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##791B7E#FFFFFF#000000##FFFFFF
##791B7E1.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)
#004081
Deuteranopia (green-blind)
#324B7C
Tritanopia (blue-blind)
#7C2D4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #791b7e;
/* rgb */ color: rgb(121, 27, 126);
/* oklch */ color: oklch(42.2% 0.171 325.8);
Tailwind
colors: {
  custom: {
    50: '#a363a4',
    500: '#791b7e',
    950: '#000000',
  },
}
SCSS
$custom: #791b7e;
$custom-light: #a363a4;
$custom-dark: #000000;
JSON
{
  "hex": "#791b7e",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 296.97,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.42167,
    "c": 0.17085,
    "h": 325.8
  },
  "luminance": 0.06355
}

Semantic roles & 50–950 ramp

primary
#791B7E
secondary
#49B243
accent
#E84049
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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