#792B9A#792B9A

#792B9A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.178 H 313.8°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#792B9A
RGBrgb(121, 43, 154)
HSLhsl(282, 56%, 39%)
HSVhsv(282, 72%, 60%)
CMYKcmyk(21.4%, 72.1%, 0%, 39.6%)
CIE-LABlab(34.24, 51.09, -45.46)
CIE-LCHlch(34.24, 68.39, 318.34°)
OKLaboklab(45.57% 0.1231 -0.1282)
OKLCHoklch(45.57% 0.178 313.8)
XYZxyz(14.5808, 8.1263, 31.3660)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792B9A #4C9A2B
analogous
#412B9A #792B9A #9A2B83
triadic
#792B9A #9A792B #2B9A79
tetradic
#792B9A #9A412B #4C9A2B #2B839A
square
#792B9A #9A412B #4C9A2B #2B839A
split-complementary
#792B9A #839A2B #2B9A41
monochromatic
#2E103A #531E6A #792B9A #9E3AC8 #B56AD5

Accessibility & contrast

On white

8.00
#792B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#792B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792B9A
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792B9A#FFFFFF#000000##FFFFFF
##792B9A1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9D
Deuteranopia (green-blind)
#245298
Tritanopia (blue-blind)
#764260
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792b9a;
/* rgb */ color: rgb(121, 43, 154);
/* oklch */ color: oklch(45.6% 0.178 313.8);
Tailwind
colors: {
  custom: {
    50: '#a36cb8',
    500: '#792b9a',
    950: '#000000',
  },
}
SCSS
$custom: #792b9a;
$custom-light: #a36cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#792b9a",
  "rgb": {
    "r": 121,
    "g": 43,
    "b": 154
  },
  "hsl": {
    "h": 282.162,
    "s": 56.345,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45569,
    "c": 0.17771,
    "h": 313.8
  },
  "luminance": 0.08126
}

Semantic roles & 50–950 ramp

primary
#792B9A
secondary
#7FBC65
accent
#E04875
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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