#792A7E#792A7E

#792A7E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.6% C 0.152 H 325.3°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#792A7E
RGBrgb(121, 42, 126)
HSLhsl(296, 50%, 33%)
HSVhsv(296, 67%, 49%)
CMYKcmyk(4%, 66.7%, 0%, 50.6%)
CIE-LABlab(32.32, 45.85, -31.27)
CIE-LCHlch(32.32, 55.49, 325.71°)
OKLaboklab(43.62% 0.1254 -0.0867)
OKLCHoklch(43.62% 0.152 325.3)
XYZxyz(12.4787, 7.2280, 20.4725)
Luminance0.0723 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A7E #2F7E2A
analogous
#4F2A7E #792A7E #7E2A59
triadic
#792A7E #7E792A #2A7E79
tetradic
#792A7E #7E4F2A #2F7E2A #2A597E
square
#792A7E #7E4F2A #2F7E2A #2A597E
split-complementary
#792A7E #597E2A #2A7E4F
monochromatic
#210B22 #4D1B50 #792A7E #A539AC #C25AC8

Accessibility & contrast

On white

8.59
#792A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#792A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792A7E
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A7E#FFFFFF#000000##FFFFFF
##792A7E1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4680
Deuteranopia (green-blind)
#3A4F7C
Tritanopia (blue-blind)
#7C3650
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #792a7e;
/* rgb */ color: rgb(121, 42, 126);
/* oklch */ color: oklch(43.6% 0.152 325.3);
Tailwind
colors: {
  custom: {
    50: '#a26aa4',
    500: '#792a7e',
    950: '#000000',
  },
}
SCSS
$custom: #792a7e;
$custom-light: #a26aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#792a7e",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 296.429,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43621,
    "c": 0.15245,
    "h": 325.3
  },
  "luminance": 0.07227
}

Semantic roles & 50–950 ramp

primary
#792A7E
secondary
#5BAE56
accent
#DA4E57
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #792A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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