#792B94#792B94

#792B94 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.172 H 316.0°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#792B94
RGBrgb(121, 43, 148)
HSLhsl(285, 55%, 37%)
HSVhsv(285, 71%, 58%)
CMYKcmyk(18.2%, 70.9%, 0%, 42%)
CIE-LABlab(33.84, 49.82, -42.45)
CIE-LCHlch(33.84, 65.45, 319.56°)
OKLaboklab(45.15% 0.1237 -0.1194)
OKLCHoklch(45.15% 0.172 316)
XYZxyz(14.0935, 7.9314, 28.7997)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792B94 #46942B
analogous
#442B94 #792B94 #942B7B
triadic
#792B94 #94792B #2B9479
tetradic
#792B94 #94442B #46942B #2B7B94
square
#792B94 #94442B #46942B #2B7B94
split-complementary
#792B94 #7B942B #2B9444
monochromatic
#2B0F35 #521D65 #792B94 #A039C3 #B767D3

Accessibility & contrast

On white

8.12
#792B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#792B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792B94
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792B94#FFFFFF#000000##FFFFFF
##792B941.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#2A5292
Tritanopia (blue-blind)
#77405C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #792b94;
/* rgb */ color: rgb(121, 43, 148);
/* oklch */ color: oklch(45.2% 0.172 316.0);
Tailwind
colors: {
  custom: {
    50: '#a36bb4',
    500: '#792b94',
    950: '#000000',
  },
}
SCSS
$custom: #792b94;
$custom-light: #a36bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#792b94",
  "rgb": {
    "r": 121,
    "g": 43,
    "b": 148
  },
  "hsl": {
    "h": 284.571,
    "s": 54.974,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45151,
    "c": 0.17188,
    "h": 316
  },
  "luminance": 0.07931
}

Semantic roles & 50–950 ramp

primary
#792B94
secondary
#78B962
accent
#DE4970
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #792B94

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

Preview Lab → · Contrast checker → · Palette generator →

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