#791D8E#791D8E

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

Color values

HEX#791D8E
RGBrgb(121, 29, 142)
HSLhsl(289, 66%, 34%)
HSVhsv(289, 80%, 56%)
CMYKcmyk(14.8%, 79.6%, 0%, 44.3%)
CIE-LABlab(31.57, 53.92, -42.41)
CIE-LCHlch(31.57, 68.60, 321.81°)
OKLaboklab(43.41% 0.1381 -0.1192)
OKLCHoklch(43.41% 0.182 319.2)
XYZxyz(13.2064, 6.8973, 26.2216)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D8E #328E1D
analogous
#411D8E #791D8E #8E1D6A
triadic
#791D8E #8E791D #1D8E79
tetradic
#791D8E #8E411D #328E1D #1D6A8E
square
#791D8E #8E411D #328E1D #1D6A8E
split-complementary
#791D8E #6A8E1D #1D8E41
monochromatic
#220828 #4E135B #791D8E #A427C1 #C04BDA

Accessibility & contrast

On white

8.83
#791D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791D8E
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791D8E#FFFFFF#000000##FFFFFF
##791D8E1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#264D8C
Tritanopia (blue-blind)
#793655
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791d8e;
/* rgb */ color: rgb(121, 29, 142);
/* oklch */ color: oklch(43.4% 0.182 319.2);
Tailwind
colors: {
  custom: {
    50: '#a465b0',
    500: '#791d8e',
    950: '#000000',
  },
}
SCSS
$custom: #791d8e;
$custom-light: #a465b0;
$custom-dark: #000000;
JSON
{
  "hex": "#791d8e",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 288.85,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.4341,
    "c": 0.18238,
    "h": 319.2
  },
  "luminance": 0.06897
}

Semantic roles & 50–950 ramp

primary
#791D8E
secondary
#5FBD4A
accent
#E93F5E
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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