#792A87#792A87

#792A87 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.2% C 0.161 H 321.3°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#792A87
RGBrgb(121, 42, 135)
HSLhsl(291, 53%, 35%)
HSVhsv(291, 69%, 53%)
CMYKcmyk(10.4%, 68.9%, 0%, 47.1%)
CIE-LABlab(32.86, 47.60, -36.02)
CIE-LCHlch(32.86, 59.69, 322.88°)
OKLaboklab(44.18% 0.1255 -0.1006)
OKLCHoklch(44.18% 0.161 321.3)
XYZxyz(13.0858, 7.4708, 23.6697)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A87 #38872A
analogous
#4B2A87 #792A87 #872A66
triadic
#792A87 #87792A #2A8779
tetradic
#792A87 #874B2A #38872A #2A6687
square
#792A87 #874B2A #38872A #2A6687
split-complementary
#792A87 #66872A #2A874B
monochromatic
#250D2A #4F1B58 #792A87 #A339B6 #BC5ECD

Accessibility & contrast

On white

8.42
#792A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792A87
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A87#FFFFFF#000000##FFFFFF
##792A871.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D488A
Deuteranopia (green-blind)
#345085
Tritanopia (blue-blind)
#7A3A55
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #792a87;
/* rgb */ color: rgb(121, 42, 135);
/* oklch */ color: oklch(44.2% 0.161 321.3);
Tailwind
colors: {
  custom: {
    50: '#a36aaa',
    500: '#792a87',
    950: '#000000',
  },
}
SCSS
$custom: #792a87;
$custom-light: #a36aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#792a87",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 290.968,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44179,
    "c": 0.16079,
    "h": 321.3
  },
  "luminance": 0.0747
}

Semantic roles & 50–950 ramp

primary
#792A87
secondary
#67B35A
accent
#DC4C62
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792A87

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

Preview Lab → · Contrast checker → · Palette generator →

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