#791571#791571

#791571 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.9% C 0.166 H 331.9°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#791571
RGBrgb(121, 21, 113)
HSLhsl(305, 70%, 28%)
HSVhsv(305, 83%, 47%)
CMYKcmyk(0%, 82.6%, 6.6%, 52.5%)
CIE-LABlab(28.89, 51.16, -28.48)
CIE-LCHlch(28.89, 58.56, 330.90°)
OKLaboklab(40.91% 0.1467 -0.0785)
OKLCHoklch(40.91% 0.166 331.9)
XYZxyz(11.1340, 5.7945, 16.1516)
Luminance0.0579 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791571 #15791D
analogous
#4F1579 #791571 #79153F
triadic
#791571 #717915 #157179
tetradic
#791571 #794F15 #15791D #153F79
square
#791571 #794F15 #15791D #153F79
split-complementary
#791571 #3F7915 #15794F
monochromatic
#1A0518 #450C40 #791571 #AD1EA2 #DB2ECD

Accessibility & contrast

On white

9.73
#791571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#791571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791571
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791571#FFFFFF#000000##FFFFFF
##7915711.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3B73
Deuteranopia (green-blind)
#38496F
Tritanopia (blue-blind)
#7E2243
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #791571;
/* rgb */ color: rgb(121, 21, 113);
/* oklch */ color: oklch(40.9% 0.166 331.9);
Tailwind
colors: {
  custom: {
    50: '#a3619a',
    500: '#791571',
    950: '#000000',
  },
}
SCSS
$custom: #791571;
$custom-light: #a3619a;
$custom-dark: #000000;
JSON
{
  "hex": "#791571",
  "rgb": {
    "r": 121,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 304.8,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.40913,
    "c": 0.16639,
    "h": 331.9
  },
  "luminance": 0.05794
}

Semantic roles & 50–950 ramp

primary
#791571
secondary
#3BAF44
accent
#ED493B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050E
muted
#7F7A7E

Preview Lab

Preview with #791571

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

Preview Lab → · Contrast checker → · Palette generator →

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