#792A7C#792A7C

#792A7C is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.5% C 0.151 H 326.3°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#792A7C
RGBrgb(121, 42, 124)
HSLhsl(298, 49%, 33%)
HSVhsv(298, 66%, 49%)
CMYKcmyk(2.4%, 66.1%, 0%, 51.4%)
CIE-LABlab(32.21, 45.47, -30.19)
CIE-LCHlch(32.21, 54.58, 326.41°)
OKLaboklab(43.5% 0.1253 -0.0836)
OKLCHoklch(43.5% 0.151 326.3)
XYZxyz(12.3510, 7.1769, 19.7996)
Luminance0.0718 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A7C #2D7C2A
analogous
#502A7C #792A7C #7C2A56
triadic
#792A7C #7C792A #2A7C79
tetradic
#792A7C #7C502A #2D7C2A #2A567C
square
#792A7C #7C502A #2D7C2A #2A567C
split-complementary
#792A7C #567C2A #2A7C50
monochromatic
#200B21 #4C1B4E #792A7C #A639AA #C359C7

Accessibility & contrast

On white

8.62
#792A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#792A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792A7C
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A7C#FFFFFF#000000##FFFFFF
##792A7C1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D457E
Deuteranopia (green-blind)
#3B4F7A
Tritanopia (blue-blind)
#7C364F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #792a7c;
/* rgb */ color: rgb(121, 42, 124);
/* oklch */ color: oklch(43.5% 0.151 326.3);
Tailwind
colors: {
  custom: {
    50: '#a26aa2',
    500: '#792a7c',
    950: '#000000',
  },
}
SCSS
$custom: #792a7c;
$custom-light: #a26aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#792a7c",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 297.805,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43501,
    "c": 0.15063,
    "h": 326.3
  },
  "luminance": 0.07176
}

Semantic roles & 50–950 ramp

primary
#792A7C
secondary
#58AD55
accent
#D94F54
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #792A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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