#792C9D#792C9D

#792C9D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.179 H 312.7°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#792C9D
RGBrgb(121, 44, 157)
HSLhsl(281, 56%, 39%)
HSVhsv(281, 72%, 62%)
CMYKcmyk(22.9%, 72%, 0%, 38.4%)
CIE-LABlab(34.60, 51.31, -46.70)
CIE-LCHlch(34.60, 69.38, 317.69°)
OKLaboklab(45.89% 0.1217 -0.1319)
OKLCHoklch(45.89% 0.179 312.7)
XYZxyz(14.8706, 8.3011, 32.7107)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792C9D #509D2C
analogous
#412C9D #792C9D #9D2C89
triadic
#792C9D #9D792C #2C9D79
tetradic
#792C9D #9D412C #509D2C #2C899D
square
#792C9D #9D412C #509D2C #2C899D
split-complementary
#792C9D #899D2C #2C9D41
monochromatic
#2F113D #541F6D #792C9D #9C3DC9 #B56DD6

Accessibility & contrast

On white

7.89
#792C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792C9D
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792C9D#FFFFFF#000000##FFFFFF
##792C9D1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#21539B
Tritanopia (blue-blind)
#754461
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792c9d;
/* rgb */ color: rgb(121, 44, 157);
/* oklch */ color: oklch(45.9% 0.179 312.7);
Tailwind
colors: {
  custom: {
    50: '#a46cbb',
    500: '#792c9d',
    950: '#000000',
  },
}
SCSS
$custom: #792c9d;
$custom-light: #a46cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#792c9d",
  "rgb": {
    "r": 121,
    "g": 44,
    "b": 157
  },
  "hsl": {
    "h": 280.885,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4589,
    "c": 0.17942,
    "h": 312.7
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#792C9D
secondary
#83BD68
accent
#E04878
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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