#791C8D#791C8D

#791C8D is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.182 H 319.6°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#791C8D
RGBrgb(121, 28, 141)
HSLhsl(289, 67%, 33%)
HSVhsv(289, 80%, 55%)
CMYKcmyk(14.2%, 80.1%, 0%, 44.7%)
CIE-LABlab(31.39, 54.05, -42.08)
CIE-LCHlch(31.39, 68.50, 322.10°)
OKLaboklab(43.26% 0.1391 -0.1182)
OKLCHoklch(43.26% 0.183 319.6)
XYZxyz(13.1075, 6.8192, 25.8200)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791C8D #308D1C
analogous
#411C8D #791C8D #8D1C68
triadic
#791C8D #8D791C #1C8D79
tetradic
#791C8D #8D411C #308D1C #1C688D
square
#791C8D #8D411C #308D1C #1C688D
split-complementary
#791C8D #688D1C #1C8D41
monochromatic
#210827 #4D125A #791C8D #A526C0 #C149DB

Accessibility & contrast

On white

8.88
#791C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#791C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791C8D
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791C8D#FFFFFF#000000##FFFFFF
##791C8D1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#264D8B
Tritanopia (blue-blind)
#793555
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791c8d;
/* rgb */ color: rgb(121, 28, 141);
/* oklch */ color: oklch(43.3% 0.182 319.6);
Tailwind
colors: {
  custom: {
    50: '#a464af',
    500: '#791c8d',
    950: '#000000',
  },
}
SCSS
$custom: #791c8d;
$custom-light: #a464af;
$custom-dark: #000000;
JSON
{
  "hex": "#791c8d",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 289.381,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43261,
    "c": 0.1825,
    "h": 319.6
  },
  "luminance": 0.06819
}

Semantic roles & 50–950 ramp

primary
#791C8D
secondary
#5DBD48
accent
#EA3E5C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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