#792F9C#792F9C

#792F9C is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.175 H 312.7°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#792F9C
RGBrgb(121, 47, 156)
HSLhsl(281, 54%, 40%)
HSVhsv(281, 70%, 61%)
CMYKcmyk(22.4%, 69.9%, 0%, 38.8%)
CIE-LABlab(35.00, 49.78, -45.46)
CIE-LCHlch(35.00, 67.41, 317.60°)
OKLaboklab(46.15% 0.1185 -0.1282)
OKLCHoklch(46.15% 0.175 312.7)
XYZxyz(14.9014, 8.4987, 32.3015)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792F9C #529C2F
analogous
#422F9C #792F9C #9C2F89
triadic
#792F9C #9C792F #2F9C79
tetradic
#792F9C #9C422F #529C2F #2F899C
square
#792F9C #9C422F #529C2F #2F899C
split-complementary
#792F9C #899C2F #2F9C42
monochromatic
#30133E #55216D #792F9C #9C42C6 #B471D4

Accessibility & contrast

On white

7.78
#792F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#792F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792F9C
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792F9C#FFFFFF#000000##FFFFFF
##792F9C1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9F
Deuteranopia (green-blind)
#25549A
Tritanopia (blue-blind)
#754662
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792f9c;
/* rgb */ color: rgb(121, 47, 156);
/* oklch */ color: oklch(46.2% 0.175 312.7);
Tailwind
colors: {
  custom: {
    50: '#a36eba',
    500: '#792f9c',
    950: '#000000',
  },
}
SCSS
$custom: #792f9c;
$custom-light: #a36eba;
$custom-dark: #000000;
JSON
{
  "hex": "#792f9c",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 156
  },
  "hsl": {
    "h": 280.734,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46153,
    "c": 0.17461,
    "h": 312.7
  },
  "luminance": 0.08498
}

Semantic roles & 50–950 ramp

primary
#792F9C
secondary
#85BC6B
accent
#DD4B7A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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