#792D9B#792D9B

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

Color values

HEX#792D9B
RGBrgb(121, 45, 155)
HSLhsl(281, 55%, 39%)
HSVhsv(281, 71%, 61%)
CMYKcmyk(21.9%, 71%, 0%, 39.2%)
CIE-LABlab(34.62, 50.44, -45.47)
CIE-LCHlch(34.62, 67.91, 317.97°)
OKLaboklab(45.86% 0.1208 -0.1282)
OKLCHoklch(45.86% 0.176 313.3)
XYZxyz(14.7389, 8.3087, 31.8313)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792D9B #4F9B2D
analogous
#422D9B #792D9B #9B2D86
triadic
#792D9B #9B792D #2D9B79
tetradic
#792D9B #9B422D #4F9B2D #2D869B
square
#792D9B #9B422D #4F9B2D #2D869B
split-complementary
#792D9B #869B2D #2D9B42
monochromatic
#2F113C #541F6C #792D9B #9D3EC7 #B56ED5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##792D9B#FFFFFF#000000##FFFFFF
##792D9B1.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)
#004D9E
Deuteranopia (green-blind)
#255399
Tritanopia (blue-blind)
#754461
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792d9b;
/* rgb */ color: rgb(121, 45, 155);
/* oklch */ color: oklch(45.9% 0.176 313.3);
Tailwind
colors: {
  custom: {
    50: '#a36db9',
    500: '#792d9b',
    950: '#000000',
  },
}
SCSS
$custom: #792d9b;
$custom-light: #a36db9;
$custom-dark: #000000;
JSON
{
  "hex": "#792d9b",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 281.455,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45857,
    "c": 0.17619,
    "h": 313.3
  },
  "luminance": 0.08308
}

Semantic roles & 50–950 ramp

primary
#792D9B
secondary
#82BC68
accent
#DE4977
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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