#791C8F#791C8F

#791C8F is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.184 H 318.9°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#791C8F
RGBrgb(121, 28, 143)
HSLhsl(289, 67%, 34%)
HSVhsv(289, 80%, 56%)
CMYKcmyk(15.4%, 80.4%, 0%, 43.9%)
CIE-LABlab(31.53, 54.43, -43.09)
CIE-LCHlch(31.53, 69.43, 321.63°)
OKLaboklab(43.4% 0.1388 -0.1212)
OKLCHoklch(43.4% 0.184 318.9)
XYZxyz(13.2577, 6.8793, 26.6108)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791C8F #328F1C
analogous
#3F1C8F #791C8F #8F1C6B
triadic
#791C8F #8F791C #1C8F79
tetradic
#791C8F #8F3F1C #328F1C #1C6B8F
square
#791C8F #8F3F1C #328F1C #1C6B8F
split-complementary
#791C8F #6B8F1C #1C8F3F
monochromatic
#220829 #4E125C #791C8F #A426C2 #C04ADC

Accessibility & contrast

On white

8.84
#791C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#791C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791C8F
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791C8F#FFFFFF#000000##FFFFFF
##791C8F1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#244D8D
Tritanopia (blue-blind)
#793656
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791c8f;
/* rgb */ color: rgb(121, 28, 143);
/* oklch */ color: oklch(43.4% 0.184 318.9);
Tailwind
colors: {
  custom: {
    50: '#a464b0',
    500: '#791c8f',
    950: '#000000',
  },
}
SCSS
$custom: #791c8f;
$custom-light: #a464b0;
$custom-dark: #000000;
JSON
{
  "hex": "#791c8f",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 288.522,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43403,
    "c": 0.18421,
    "h": 318.9
  },
  "luminance": 0.06879
}

Semantic roles & 50–950 ramp

primary
#791C8F
secondary
#5FBE49
accent
#EA3E5F
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #791C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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