#792A97#792A97

#792A97 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.176 H 315.0°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#792A97
RGBrgb(121, 42, 151)
HSLhsl(283, 56%, 38%)
HSVhsv(283, 72%, 59%)
CMYKcmyk(19.9%, 72.2%, 0%, 40.8%)
CIE-LABlab(33.89, 50.87, -44.20)
CIE-LCHlch(33.89, 67.39, 319.01°)
OKLaboklab(45.25% 0.1245 -0.1245)
OKLCHoklch(45.25% 0.176 315)
XYZxyz(14.2981, 7.9558, 30.0546)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A97 #48972A
analogous
#422A97 #792A97 #972A7F
triadic
#792A97 #97792A #2A9779
tetradic
#792A97 #97422A #48972A #2A7F97
square
#792A97 #97422A #48972A #2A7F97
split-complementary
#792A97 #7F972A #2A9742
monochromatic
#2C0F37 #531D67 #792A97 #9F37C7 #B667D5

Accessibility & contrast

On white

8.10
#792A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792A97
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A97#FFFFFF#000000##FFFFFF
##792A971.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#265295
Tritanopia (blue-blind)
#77415E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #792a97;
/* rgb */ color: rgb(121, 42, 151);
/* oklch */ color: oklch(45.3% 0.176 315.0);
Tailwind
colors: {
  custom: {
    50: '#a36bb6',
    500: '#792a97',
    950: '#000000',
  },
}
SCSS
$custom: #792a97;
$custom-light: #a36bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#792a97",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 283.486,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45252,
    "c": 0.17605,
    "h": 315
  },
  "luminance": 0.07955
}

Semantic roles & 50–950 ramp

primary
#792A97
secondary
#7ABB62
accent
#E04872
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792A97

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

Preview Lab → · Contrast checker → · Palette generator →

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