#791971#791971

#791971 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.2% C 0.163 H 331.9°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#791971
RGBrgb(121, 25, 113)
HSLhsl(305, 66%, 29%)
HSVhsv(305, 79%, 47%)
CMYKcmyk(0%, 79.3%, 6.6%, 52.5%)
CIE-LABlab(29.29, 49.99, -27.84)
CIE-LCHlch(29.29, 57.22, 330.89°)
OKLaboklab(41.2% 0.1433 -0.0766)
OKLCHoklch(41.2% 0.163 331.9)
XYZxyz(11.2134, 5.9534, 16.1781)
Luminance0.0595 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791971 #197921
analogous
#511979 #791971 #791941
triadic
#791971 #717919 #197179
tetradic
#791971 #795119 #197921 #194179
square
#791971 #795119 #197921 #194179
split-complementary
#791971 #417919 #197951
monochromatic
#190518 #460F42 #791971 #AC23A0 #D637C8

Accessibility & contrast

On white

9.59
#791971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#791971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791971
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791971#FFFFFF#000000##FFFFFF
##7919711.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113C73
Deuteranopia (green-blind)
#394A6F
Tritanopia (blue-blind)
#7E2544
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #791971;
/* rgb */ color: rgb(121, 25, 113);
/* oklch */ color: oklch(41.2% 0.163 331.9);
Tailwind
colors: {
  custom: {
    50: '#a3629a',
    500: '#791971',
    950: '#000000',
  },
}
SCSS
$custom: #791971;
$custom-light: #a3629a;
$custom-dark: #000000;
JSON
{
  "hex": "#791971",
  "rgb": {
    "r": 121,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 305,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41204,
    "c": 0.16252,
    "h": 331.9
  },
  "luminance": 0.05952
}

Semantic roles & 50–950 ramp

primary
#791971
secondary
#40AE49
accent
#E94D3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #791971

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

Preview Lab → · Contrast checker → · Palette generator →

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