#792D9C#792D9C

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

Color values

HEX#792D9C
RGBrgb(121, 45, 156)
HSLhsl(281, 55%, 39%)
HSVhsv(281, 71%, 61%)
CMYKcmyk(22.4%, 71.2%, 0%, 38.8%)
CIE-LABlab(34.69, 50.66, -45.96)
CIE-LCHlch(34.69, 68.40, 317.78°)
OKLaboklab(45.93% 0.1207 -0.1297)
OKLCHoklch(45.93% 0.177 312.9)
XYZxyz(14.8232, 8.3425, 32.2754)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792D9C #509C2D
analogous
#422D9C #792D9C #9C2D88
triadic
#792D9C #9C792D #2D9C79
tetradic
#792D9C #9C422D #509C2D #2D889C
square
#792D9C #9C422D #509C2D #2D889C
split-complementary
#792D9C #889C2D #2D9C42
monochromatic
#2F123D #541F6D #792D9C #9C3FC8 #B56ED5

Accessibility & contrast

On white

7.87
#792D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#792D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792D9C
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792D9C#FFFFFF#000000##FFFFFF
##792D9C1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #792d9c;
/* rgb */ color: rgb(121, 45, 156);
/* oklch */ color: oklch(45.9% 0.177 312.9);
Tailwind
colors: {
  custom: {
    50: '#a36dba',
    500: '#792d9c',
    950: '#000000',
  },
}
SCSS
$custom: #792d9c;
$custom-light: #a36dba;
$custom-dark: #000000;
JSON
{
  "hex": "#792d9c",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 281.081,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45928,
    "c": 0.17717,
    "h": 312.9
  },
  "luminance": 0.08342
}

Semantic roles & 50–950 ramp

primary
#792D9C
secondary
#83BC68
accent
#DF4978
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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