#792A9F#792A9F

#792A9F is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.184 H 312.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#792A9F
RGBrgb(121, 42, 159)
HSLhsl(281, 58%, 39%)
HSVhsv(281, 74%, 62%)
CMYKcmyk(23.9%, 73.6%, 0%, 37.6%)
CIE-LABlab(34.45, 52.58, -48.17)
CIE-LCHlch(34.45, 71.31, 317.51°)
OKLaboklab(45.82% 0.1235 -0.1361)
OKLCHoklch(45.82% 0.184 312.2)
XYZxyz(14.9700, 8.2245, 33.5931)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A9F #509F2A
analogous
#3F2A9F #792A9F #9F2A8B
triadic
#792A9F #9F792A #2A9F79
tetradic
#792A9F #9F3F2A #509F2A #2A8B9F
square
#792A9F #9F3F2A #509F2A #2A8B9F
split-complementary
#792A9F #8B9F2A #2A9F3F
monochromatic
#2F103E #541D6F #792A9F #9C3BCB #B56BD8

Accessibility & contrast

On white

7.94
#792A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#792A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792A9F
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A9F#FFFFFF#000000##FFFFFF
##792A9F1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#1B539C
Tritanopia (blue-blind)
#754462
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792a9f;
/* rgb */ color: rgb(121, 42, 159);
/* oklch */ color: oklch(45.8% 0.184 312.2);
Tailwind
colors: {
  custom: {
    50: '#a46bbc',
    500: '#792a9f',
    950: '#000000',
  },
}
SCSS
$custom: #792a9f;
$custom-light: #a46bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#792a9f",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 159
  },
  "hsl": {
    "h": 280.513,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45824,
    "c": 0.18379,
    "h": 312.2
  },
  "luminance": 0.08224
}

Semantic roles & 50–950 ramp

primary
#792A9F
secondary
#83BF66
accent
#E14679
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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