#792C9A#792C9A

#792C9A is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.176 H 313.7°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#792C9A
RGBrgb(121, 44, 154)
HSLhsl(282, 56%, 39%)
HSVhsv(282, 71%, 60%)
CMYKcmyk(21.4%, 71.4%, 0%, 39.6%)
CIE-LABlab(34.40, 50.66, -45.22)
CIE-LCHlch(34.40, 67.91, 318.25°)
OKLaboklab(45.68% 0.122 -0.1275)
OKLCHoklch(45.68% 0.176 313.7)
XYZxyz(14.6176, 8.1999, 31.3783)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792C9A #4D9A2C
analogous
#422C9A #792C9A #9A2C84
triadic
#792C9A #9A792C #2C9A79
tetradic
#792C9A #9A422C #4D9A2C #2C849A
square
#792C9A #9A422C #4D9A2C #2C849A
split-complementary
#792C9A #849A2C #2C9A42
monochromatic
#2E113B #541E6A #792C9A #9D3CC7 #B56CD5

Accessibility & contrast

On white

7.96
#792C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#792C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792C9A
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792C9A#FFFFFF#000000##FFFFFF
##792C9A1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9D
Deuteranopia (green-blind)
#255398
Tritanopia (blue-blind)
#764360
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792c9a;
/* rgb */ color: rgb(121, 44, 154);
/* oklch */ color: oklch(45.7% 0.176 313.7);
Tailwind
colors: {
  custom: {
    50: '#a36cb8',
    500: '#792c9a',
    950: '#000000',
  },
}
SCSS
$custom: #792c9a;
$custom-light: #a36cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#792c9a",
  "rgb": {
    "r": 121,
    "g": 44,
    "b": 154
  },
  "hsl": {
    "h": 282,
    "s": 55.556,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45677,
    "c": 0.17647,
    "h": 313.7
  },
  "luminance": 0.08199
}

Semantic roles & 50–950 ramp

primary
#792C9A
secondary
#80BC66
accent
#DF4976
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792C9A

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

Preview Lab → · Contrast checker → · Palette generator →

#792C9A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva