#792E7B#792E7B

#792E7B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.9% C 0.144 H 326.6°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#792E7B
RGBrgb(121, 46, 123)
HSLhsl(298, 46%, 33%)
HSVhsv(298, 63%, 48%)
CMYKcmyk(1.6%, 62.6%, 0%, 51.8%)
CIE-LABlab(32.81, 43.46, -28.61)
CIE-LCHlch(32.81, 52.03, 326.64°)
OKLaboklab(43.92% 0.1201 -0.0791)
OKLCHoklch(43.92% 0.144 326.6)
XYZxyz(12.4371, 7.4498, 19.5179)
Luminance0.0745 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792E7B #307B2E
analogous
#522E7B #792E7B #7B2E56
triadic
#792E7B #7B792E #2E7B79
tetradic
#792E7B #7B522E #307B2E #2E567B
square
#792E7B #7B522E #307B2E #2E567B
split-complementary
#792E7B #567B2E #2E7B52
monochromatic
#210D22 #4D1D4E #792E7B #A53FA8 #C160C3

Accessibility & contrast

On white

8.43
#792E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#792E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792E7B
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792E7B#FFFFFF#000000##FFFFFF
##792E7B1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24477D
Deuteranopia (green-blind)
#3E5179
Tritanopia (blue-blind)
#7C3850
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #792e7b;
/* rgb */ color: rgb(121, 46, 123);
/* oklch */ color: oklch(43.9% 0.144 326.6);
Tailwind
colors: {
  custom: {
    50: '#a26ca1',
    500: '#792e7b',
    950: '#000000',
  },
}
SCSS
$custom: #792e7b;
$custom-light: #a26ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#792e7b",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 298.442,
    "s": 45.562,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43921,
    "c": 0.14381,
    "h": 326.6
  },
  "luminance": 0.07449
}

Semantic roles & 50–950 ramp

primary
#792E7B
secondary
#5DAA5B
accent
#D55356
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070F
muted
#7F7A7E

Preview Lab

Preview with #792E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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