#792B9B#792B9B

#792B9B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.179 H 313.5°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#792B9B
RGBrgb(121, 43, 155)
HSLhsl(282, 57%, 39%)
HSVhsv(282, 72%, 61%)
CMYKcmyk(21.9%, 72.3%, 0%, 39.2%)
CIE-LABlab(34.31, 51.30, -45.96)
CIE-LCHlch(34.31, 68.88, 318.15°)
OKLaboklab(45.64% 0.123 -0.1297)
OKLCHoklch(45.64% 0.179 313.5)
XYZxyz(14.6644, 8.1597, 31.8065)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792B9B #4D9B2B
analogous
#412B9B #792B9B #9B2B85
triadic
#792B9B #9B792B #2B9B79
tetradic
#792B9B #9B412B #4D9B2B #2B859B
square
#792B9B #9B412B #4D9B2B #2B859B
split-complementary
#792B9B #859B2B #2B9B41
monochromatic
#2E103B #541E6B #792B9B #9D3BC9 #B56BD6

Accessibility & contrast

On white

7.98
#792B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792B9B
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792B9B#FFFFFF#000000##FFFFFF
##792B9B1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#225299
Tritanopia (blue-blind)
#764360
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792b9b;
/* rgb */ color: rgb(121, 43, 155);
/* oklch */ color: oklch(45.6% 0.179 313.5);
Tailwind
colors: {
  custom: {
    50: '#a36cb9',
    500: '#792b9b',
    950: '#000000',
  },
}
SCSS
$custom: #792b9b;
$custom-light: #a36cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#792b9b",
  "rgb": {
    "r": 121,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 281.786,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4564,
    "c": 0.17869,
    "h": 313.5
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#792B9B
secondary
#80BC65
accent
#E04876
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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