#792A9E#792A9E

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

Color values

HEX#792A9E
RGBrgb(121, 42, 158)
HSLhsl(281, 58%, 39%)
HSVhsv(281, 73%, 62%)
CMYKcmyk(23.4%, 73.4%, 0%, 38%)
CIE-LABlab(34.38, 52.37, -47.68)
CIE-LCHlch(34.38, 70.82, 317.68°)
OKLaboklab(45.75% 0.1236 -0.1347)
OKLCHoklch(45.75% 0.183 312.5)
XYZxyz(14.8836, 8.1899, 33.1379)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A9E #4F9E2A
analogous
#3F2A9E #792A9E #9E2A89
triadic
#792A9E #9E792A #2A9E79
tetradic
#792A9E #9E3F2A #4F9E2A #2A899E
square
#792A9E #9E3F2A #4F9E2A #2A899E
split-complementary
#792A9E #899E2A #2A9E3F
monochromatic
#2F103D #541D6E #792A9E #9D3ACB #B56BD8

Accessibility & contrast

On white

7.96
#792A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792A9E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A9E#FFFFFF#000000##FFFFFF
##792A9E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#1D529B
Tritanopia (blue-blind)
#754461
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792a9e;
/* rgb */ color: rgb(121, 42, 158);
/* oklch */ color: oklch(45.8% 0.183 312.5);
Tailwind
colors: {
  custom: {
    50: '#a46bbb',
    500: '#792a9e',
    950: '#000000',
  },
}
SCSS
$custom: #792a9e;
$custom-light: #a46bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#792a9e",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 280.862,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45751,
    "c": 0.18282,
    "h": 312.5
  },
  "luminance": 0.08189
}

Semantic roles & 50–950 ramp

primary
#792A9E
secondary
#82BE66
accent
#E14778
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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