#791772#791772

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

Color values

HEX#791772
RGBrgb(121, 23, 114)
HSLhsl(304, 68%, 28%)
HSVhsv(304, 81%, 47%)
CMYKcmyk(0%, 81%, 5.8%, 52.5%)
CIE-LABlab(29.14, 50.76, -28.72)
CIE-LCHlch(29.14, 58.32, 330.50°)
OKLaboklab(41.11% 0.1451 -0.0792)
OKLCHoklch(41.11% 0.165 331.4)
XYZxyz(11.2288, 5.8936, 16.4625)
Luminance0.0589 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791772 #17791E
analogous
#4F1779 #791772 #791741
triadic
#791772 #727917 #177279
tetradic
#791772 #794F17 #17791E #174179
square
#791772 #794F17 #17791E #174179
split-complementary
#791772 #417917 #17794F
monochromatic
#1A0518 #460D42 #791772 #AC21A2 #D832CC

Accessibility & contrast

On white

9.64
#791772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#791772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791772
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791772#FFFFFF#000000##FFFFFF
##7917721.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3C74
Deuteranopia (green-blind)
#384970
Tritanopia (blue-blind)
#7E2444
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #791772;
/* rgb */ color: rgb(121, 23, 114);
/* oklch */ color: oklch(41.1% 0.165 331.4);
Tailwind
colors: {
  custom: {
    50: '#a3619b',
    500: '#791772',
    950: '#000000',
  },
}
SCSS
$custom: #791772;
$custom-light: #a3619b;
$custom-dark: #000000;
JSON
{
  "hex": "#791772",
  "rgb": {
    "r": 121,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 304.286,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41113,
    "c": 0.16528,
    "h": 331.4
  },
  "luminance": 0.05893
}

Semantic roles & 50–950 ramp

primary
#791772
secondary
#3EAE46
accent
#EB493D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #791772

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

Preview Lab → · Contrast checker → · Palette generator →

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