#792A7B#792A7B

#792A7B is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.4% C 0.150 H 326.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#792A7B
RGBrgb(121, 42, 123)
HSLhsl(299, 49%, 32%)
HSVhsv(299, 66%, 48%)
CMYKcmyk(1.6%, 65.9%, 0%, 51.8%)
CIE-LABlab(32.15, 45.28, -29.66)
CIE-LCHlch(32.15, 54.13, 326.78°)
OKLaboklab(43.44% 0.1252 -0.082)
OKLCHoklch(43.44% 0.15 326.8)
XYZxyz(12.2881, 7.1517, 19.4682)
Luminance0.0715 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A7B #2C7B2A
analogous
#512A7B #792A7B #7B2A54
triadic
#792A7B #7B792A #2A7B79
tetradic
#792A7B #7B512A #2C7B2A #2A547B
square
#792A7B #7B512A #2C7B2A #2A547B
split-complementary
#792A7B #547B2A #2A7B51
monochromatic
#1F0B20 #4C1A4D #792A7B #A63AA9 #C459C6

Accessibility & contrast

On white

8.64
#792A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#792A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792A7B
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A7B#FFFFFF#000000##FFFFFF
##792A7B1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E457D
Deuteranopia (green-blind)
#3C4F79
Tritanopia (blue-blind)
#7C354E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #792a7b;
/* rgb */ color: rgb(121, 42, 123);
/* oklch */ color: oklch(43.4% 0.150 326.8);
Tailwind
colors: {
  custom: {
    50: '#a26aa1',
    500: '#792a7b',
    950: '#000000',
  },
}
SCSS
$custom: #792a7b;
$custom-light: #a26aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#792a7b",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 298.519,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43442,
    "c": 0.14972,
    "h": 326.8
  },
  "luminance": 0.07151
}

Semantic roles & 50–950 ramp

primary
#792A7B
secondary
#57AC55
accent
#D94F53
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #792A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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