#792E9B#792E9B

#792E9B is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.175 H 313.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#792E9B
RGBrgb(121, 46, 155)
HSLhsl(281, 54%, 39%)
HSVhsv(281, 70%, 61%)
CMYKcmyk(21.9%, 70.3%, 0%, 39.2%)
CIE-LABlab(34.77, 50.01, -45.21)
CIE-LCHlch(34.77, 67.42, 317.88°)
OKLaboklab(45.97% 0.1197 -0.1275)
OKLCHoklch(45.97% 0.175 313.2)
XYZxyz(14.7775, 8.3859, 31.8442)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792E9B #509B2E
analogous
#422E9B #792E9B #9B2E87
triadic
#792E9B #9B792E #2E9B79
tetradic
#792E9B #9B422E #509B2E #2E879B
square
#792E9B #9B422E #509B2E #2E879B
split-complementary
#792E9B #879B2E #2E9B42
monochromatic
#2F123D #54206C #792E9B #9C40C6 #B56FD4

Accessibility & contrast

On white

7.84
#792E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#792E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792E9B
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792E9B#FFFFFF#000000##FFFFFF
##792E9B1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#265399
Tritanopia (blue-blind)
#754561
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792e9b;
/* rgb */ color: rgb(121, 46, 155);
/* oklch */ color: oklch(46.0% 0.175 313.2);
Tailwind
colors: {
  custom: {
    50: '#a36db9',
    500: '#792e9b',
    950: '#000000',
  },
}
SCSS
$custom: #792e9b;
$custom-light: #a36db9;
$custom-dark: #000000;
JSON
{
  "hex": "#792e9b",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 281.284,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45969,
    "c": 0.1749,
    "h": 313.2
  },
  "luminance": 0.08385
}

Semantic roles & 50–950 ramp

primary
#792E9B
secondary
#83BC69
accent
#DE4A78
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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