#791771#791771

#791771 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.1% C 0.165 H 331.9°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#791771
RGBrgb(121, 23, 113)
HSLhsl(305, 68%, 28%)
HSVhsv(305, 81%, 47%)
CMYKcmyk(0%, 81%, 6.6%, 52.5%)
CIE-LABlab(29.08, 50.60, -28.17)
CIE-LCHlch(29.08, 57.91, 330.89°)
OKLaboklab(41.05% 0.1451 -0.0776)
OKLCHoklch(41.05% 0.165 331.9)
XYZxyz(11.1722, 5.8709, 16.1644)
Luminance0.0587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791771 #17791F
analogous
#501779 #791771 #791740
triadic
#791771 #717917 #177179
tetradic
#791771 #795017 #17791F #174079
square
#791771 #795017 #17791F #174079
split-complementary
#791771 #407917 #177950
monochromatic
#1A0518 #460D41 #791771 #AC21A1 #D832CB

Accessibility & contrast

On white

9.66
#791771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#791771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791771
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791771#FFFFFF#000000##FFFFFF
##7917711.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3C73
Deuteranopia (green-blind)
#38496F
Tritanopia (blue-blind)
#7E2444
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #791771;
/* rgb */ color: rgb(121, 23, 113);
/* oklch */ color: oklch(41.1% 0.165 331.9);
Tailwind
colors: {
  custom: {
    50: '#a3619a',
    500: '#791771',
    950: '#000000',
  },
}
SCSS
$custom: #791771;
$custom-light: #a3619a;
$custom-dark: #000000;
JSON
{
  "hex": "#791771",
  "rgb": {
    "r": 121,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 304.898,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41053,
    "c": 0.16452,
    "h": 331.9
  },
  "luminance": 0.0587
}

Semantic roles & 50–950 ramp

primary
#791771
secondary
#3EAE47
accent
#EB4B3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #791771

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

Preview Lab → · Contrast checker → · Palette generator →

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