#791972#791972

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

Color values

HEX#791972
RGBrgb(121, 25, 114)
HSLhsl(304, 66%, 29%)
HSVhsv(304, 79%, 47%)
CMYKcmyk(0%, 79.3%, 5.8%, 52.5%)
CIE-LABlab(29.35, 50.16, -28.38)
CIE-LCHlch(29.35, 57.63, 330.50°)
OKLaboklab(41.26% 0.1433 -0.0782)
OKLCHoklch(41.26% 0.163 331.4)
XYZxyz(11.2701, 5.9760, 16.4762)
Luminance0.0597 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791972 #197920
analogous
#501979 #791972 #791942
triadic
#791972 #727919 #197279
tetradic
#791972 #795019 #197920 #194279
square
#791972 #795019 #197920 #194279
split-complementary
#791972 #427919 #197950
monochromatic
#190518 #460F42 #791972 #AC23A2 #D637CA

Accessibility & contrast

On white

9.57
#791972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791972
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791972#FFFFFF#000000##FFFFFF
##7919721.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3D74
Deuteranopia (green-blind)
#394A70
Tritanopia (blue-blind)
#7E2545
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #791972;
/* rgb */ color: rgb(121, 25, 114);
/* oklch */ color: oklch(41.3% 0.163 331.4);
Tailwind
colors: {
  custom: {
    50: '#a3629b',
    500: '#791972',
    950: '#000000',
  },
}
SCSS
$custom: #791972;
$custom-light: #a3629b;
$custom-dark: #000000;
JSON
{
  "hex": "#791972",
  "rgb": {
    "r": 121,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 304.375,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41263,
    "c": 0.1633,
    "h": 331.4
  },
  "luminance": 0.05975
}

Semantic roles & 50–950 ramp

primary
#791972
secondary
#40AE48
accent
#E94B3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #791972

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

Preview Lab → · Contrast checker → · Palette generator →

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