#792A9C#792A9C

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

Color values

HEX#792A9C
RGBrgb(121, 42, 156)
HSLhsl(282, 58%, 39%)
HSVhsv(282, 73%, 61%)
CMYKcmyk(22.4%, 73.1%, 0%, 38.8%)
CIE-LABlab(34.23, 51.94, -46.69)
CIE-LCHlch(34.23, 69.84, 318.05°)
OKLaboklab(45.61% 0.1239 -0.1318)
OKLCHoklch(45.61% 0.181 313.2)
XYZxyz(14.7128, 8.1216, 32.2386)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A9C #4D9C2A
analogous
#402A9C #792A9C #9C2A86
triadic
#792A9C #9C792A #2A9C79
tetradic
#792A9C #9C402A #4D9C2A #2A869C
square
#792A9C #9C402A #4D9C2A #2A869C
split-complementary
#792A9C #869C2A #2A9C40
monochromatic
#2E103C #541D6C #792A9C #9D39CA #B56AD7

Accessibility & contrast

On white

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

On black

2.62
#792A9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##792A9C#FFFFFF#000000##FFFFFF
##792A9C1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#205299
Tritanopia (blue-blind)
#754360
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #792a9c;
/* rgb */ color: rgb(121, 42, 156);
/* oklch */ color: oklch(45.6% 0.181 313.2);
Tailwind
colors: {
  custom: {
    50: '#a46bba',
    500: '#792a9c',
    950: '#000000',
  },
}
SCSS
$custom: #792a9c;
$custom-light: #a46bba;
$custom-dark: #000000;
JSON
{
  "hex": "#792a9c",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 156
  },
  "hsl": {
    "h": 281.579,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45606,
    "c": 0.18089,
    "h": 313.2
  },
  "luminance": 0.08121
}

Semantic roles & 50–950 ramp

primary
#792A9C
secondary
#80BD65
accent
#E14776
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792A9C

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

Preview Lab → · Contrast checker → · Palette generator →

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