#792997#792997

#792997 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.177 H 315.1°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#792997
RGBrgb(121, 41, 151)
HSLhsl(284, 57%, 38%)
HSVhsv(284, 73%, 59%)
CMYKcmyk(19.9%, 72.8%, 0%, 40.8%)
CIE-LABlab(33.74, 51.29, -44.44)
CIE-LCHlch(33.74, 67.86, 319.09°)
OKLaboklab(45.15% 0.1255 -0.1252)
OKLCHoklch(45.15% 0.177 315.1)
XYZxyz(14.2631, 7.8857, 30.0429)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792997 #479729
analogous
#422997 #792997 #97297E
triadic
#792997 #977929 #299779
tetradic
#792997 #974229 #479729 #297E97
square
#792997 #974229 #479729 #297E97
split-complementary
#792997 #7E9729 #299742
monochromatic
#2C0F37 #521C67 #792997 #A036C7 #B765D5

Accessibility & contrast

On white

8.15
#792997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#792997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792997
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792997#FFFFFF#000000##FFFFFF
##7929971.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#255195
Tritanopia (blue-blind)
#77405D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #792997;
/* rgb */ color: rgb(121, 41, 151);
/* oklch */ color: oklch(45.1% 0.177 315.1);
Tailwind
colors: {
  custom: {
    50: '#a36ab6',
    500: '#792997',
    950: '#000000',
  },
}
SCSS
$custom: #792997;
$custom-light: #a36ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#792997",
  "rgb": {
    "r": 121,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 283.636,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45147,
    "c": 0.17728,
    "h": 315.1
  },
  "luminance": 0.07885
}

Semantic roles & 50–950 ramp

primary
#792997
secondary
#79BB61
accent
#E14771
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792997

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

Preview Lab → · Contrast checker → · Palette generator →

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