#792D9F#792D9F

#792D9F is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.180 H 311.9°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#792D9F
RGBrgb(121, 45, 159)
HSLhsl(280, 56%, 40%)
HSVhsv(280, 72%, 62%)
CMYKcmyk(23.9%, 71.7%, 0%, 37.6%)
CIE-LABlab(34.89, 51.31, -47.44)
CIE-LCHlch(34.89, 69.89, 317.24°)
OKLaboklab(46.14% 0.1204 -0.134)
OKLCHoklch(46.14% 0.18 311.9)
XYZxyz(15.0804, 8.4453, 33.6299)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792D9F #539F2D
analogous
#402D9F #792D9F #9F2D8C
triadic
#792D9F #9F792D #2D9F79
tetradic
#792D9F #9F402D #539F2D #2D8C9F
square
#792D9F #9F402D #539F2D #2D8C9F
split-complementary
#792D9F #8C9F2D #2D9F40
monochromatic
#301240 #55206F #792D9F #9B40C9 #B470D6

Accessibility & contrast

On white

7.81
#792D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#792D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792D9F
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792D9F#FFFFFF#000000##FFFFFF
##792D9F1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#1F549C
Tritanopia (blue-blind)
#744663
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792d9f;
/* rgb */ color: rgb(121, 45, 159);
/* oklch */ color: oklch(46.1% 0.180 311.9);
Tailwind
colors: {
  custom: {
    50: '#a46dbc',
    500: '#792d9f',
    950: '#000000',
  },
}
SCSS
$custom: #792d9f;
$custom-light: #a46dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#792d9f",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 280,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.46142,
    "c": 0.18015,
    "h": 311.9
  },
  "luminance": 0.08445
}

Semantic roles & 50–950 ramp

primary
#792D9F
secondary
#86BE6A
accent
#DF497B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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