#791581#791581

#791581 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.179 H 324.7°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#791581
RGBrgb(121, 21, 129)
HSLhsl(296, 72%, 29%)
HSVhsv(296, 84%, 51%)
CMYKcmyk(6.2%, 83.7%, 0%, 49.4%)
CIE-LABlab(29.88, 53.88, -37.04)
CIE-LCHlch(29.88, 65.38, 325.50°)
OKLaboklab(41.94% 0.146 -0.1034)
OKLCHoklch(41.94% 0.179 324.7)
XYZxyz(12.1155, 6.1871, 21.3207)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791581 #1D8115
analogous
#431581 #791581 #811553
triadic
#791581 #817915 #158179
tetradic
#791581 #814315 #1D8115 #155381
square
#791581 #814315 #1D8115 #155381
split-complementary
#791581 #538115 #158143
monochromatic
#19041A #480C4C #791581 #AA1EB6 #D133DE

Accessibility & contrast

On white

9.39
#791581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#791581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791581
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791581#FFFFFF#000000##FFFFFF
##7915811.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#2D4A7F
Tritanopia (blue-blind)
#7C2B4C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #791581;
/* rgb */ color: rgb(121, 21, 129);
/* oklch */ color: oklch(41.9% 0.179 324.7);
Tailwind
colors: {
  custom: {
    50: '#a361a6',
    500: '#791581',
    950: '#000000',
  },
}
SCSS
$custom: #791581;
$custom-light: #a361a6;
$custom-dark: #000000;
JSON
{
  "hex": "#791581",
  "rgb": {
    "r": 121,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 295.556,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41935,
    "c": 0.17887,
    "h": 324.7
  },
  "luminance": 0.06186
}

Semantic roles & 50–950 ramp

primary
#791581
secondary
#45B63C
accent
#EF3947
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791581

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

Preview Lab → · Contrast checker → · Palette generator →

#791581 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva