#792D9A#792D9A

#792D9A is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.175 H 313.6°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#792D9A
RGBrgb(121, 45, 154)
HSLhsl(282, 55%, 39%)
HSVhsv(282, 71%, 60%)
CMYKcmyk(21.4%, 70.8%, 0%, 39.6%)
CIE-LABlab(34.55, 50.23, -44.97)
CIE-LCHlch(34.55, 67.42, 318.16°)
OKLaboklab(45.79% 0.1209 -0.1268)
OKLCHoklch(45.79% 0.175 313.6)
XYZxyz(14.6553, 8.2753, 31.3909)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792D9A #4E9A2D
analogous
#432D9A #792D9A #9A2D85
triadic
#792D9A #9A792D #2D9A79
tetradic
#792D9A #9A432D #4E9A2D #2D859A
square
#792D9A #9A432D #4E9A2D #2D859A
split-complementary
#792D9A #859A2D #2D9A43
monochromatic
#2F113B #541F6B #792D9A #9D3EC7 #B56DD4

Accessibility & contrast

On white

7.91
#792D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#792D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792D9A
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792D9A#FFFFFF#000000##FFFFFF
##792D9A1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #792d9a;
/* rgb */ color: rgb(121, 45, 154);
/* oklch */ color: oklch(45.8% 0.175 313.6);
Tailwind
colors: {
  custom: {
    50: '#a36db8',
    500: '#792d9a',
    950: '#000000',
  },
}
SCSS
$custom: #792d9a;
$custom-light: #a36db8;
$custom-dark: #000000;
JSON
{
  "hex": "#792d9a",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 281.835,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45787,
    "c": 0.17519,
    "h": 313.6
  },
  "luminance": 0.08275
}

Semantic roles & 50–950 ramp

primary
#792D9A
secondary
#81BB67
accent
#DE4A77
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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