#792771#792771

#792771 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.5% C 0.145 H 331.9°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#792771
RGBrgb(121, 39, 113)
HSLhsl(306, 51%, 31%)
HSVhsv(306, 68%, 47%)
CMYKcmyk(0%, 67.8%, 6.6%, 52.5%)
CIE-LABlab(31.14, 44.78, -24.94)
CIE-LCHlch(31.14, 51.26, 330.89°)
OKLaboklab(42.53% 0.1282 -0.0684)
OKLCHoklch(42.53% 0.145 331.9)
XYZxyz(11.5913, 6.7091, 16.3041)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792771 #27792F
analogous
#582779 #792771 #792748
triadic
#792771 #717927 #277179
tetradic
#792771 #795827 #27792F #274879
square
#792771 #795827 #27792F #274879
split-complementary
#792771 #487927 #277958
monochromatic
#1C091B #4B1846 #792771 #A7369C #C853BC

Accessibility & contrast

On white

8.97
#792771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#792771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792771
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792771#FFFFFF#000000##FFFFFF
##7927711.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234273
Deuteranopia (green-blind)
#3F4D6F
Tritanopia (blue-blind)
#7E2F48
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #792771;
/* rgb */ color: rgb(121, 39, 113);
/* oklch */ color: oklch(42.5% 0.145 331.9);
Tailwind
colors: {
  custom: {
    50: '#a2689a',
    500: '#792771',
    950: '#000000',
  },
}
SCSS
$custom: #792771;
$custom-light: #a2689a;
$custom-dark: #000000;
JSON
{
  "hex": "#792771",
  "rgb": {
    "r": 121,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 305.854,
    "s": 51.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4253,
    "c": 0.1453,
    "h": 331.9
  },
  "luminance": 0.06708
}

Semantic roles & 50–950 ramp

primary
#792771
secondary
#51AB5A
accent
#DB5B4D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #792771

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

Preview Lab → · Contrast checker → · Palette generator →

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