#792E9C#792E9C

#792E9C is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.176 H 312.9°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#792E9C
RGBrgb(121, 46, 156)
HSLhsl(281, 54%, 40%)
HSVhsv(281, 71%, 61%)
CMYKcmyk(22.4%, 70.5%, 0%, 38.8%)
CIE-LABlab(34.84, 50.22, -45.71)
CIE-LCHlch(34.84, 67.91, 317.69°)
OKLaboklab(46.04% 0.1196 -0.129)
OKLCHoklch(46.04% 0.176 312.9)
XYZxyz(14.8618, 8.4197, 32.2883)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792E9C #519C2E
analogous
#422E9C #792E9C #9C2E88
triadic
#792E9C #9C792E #2E9C79
tetradic
#792E9C #9C422E #519C2E #2E889C
square
#792E9C #9C422E #519C2E #2E889C
split-complementary
#792E9C #889C2E #2E9C42
monochromatic
#30123D #54206D #792E9C #9C40C7 #B570D5

Accessibility & contrast

On white

7.82
#792E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#792E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792E9C
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792E9C#FFFFFF#000000##FFFFFF
##792E9C1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9F
Deuteranopia (green-blind)
#24549A
Tritanopia (blue-blind)
#754561
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792e9c;
/* rgb */ color: rgb(121, 46, 156);
/* oklch */ color: oklch(46.0% 0.176 312.9);
Tailwind
colors: {
  custom: {
    50: '#a36dba',
    500: '#792e9c',
    950: '#000000',
  },
}
SCSS
$custom: #792e9c;
$custom-light: #a36dba;
$custom-dark: #000000;
JSON
{
  "hex": "#792e9c",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 280.909,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46039,
    "c": 0.1759,
    "h": 312.9
  },
  "luminance": 0.08419
}

Semantic roles & 50–950 ramp

primary
#792E9C
secondary
#84BC6A
accent
#DE4A79
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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