#792A8B#792A8B

#792A8B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.4% C 0.165 H 319.6°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#792A8B
RGBrgb(121, 42, 139)
HSLhsl(289, 54%, 35%)
HSVhsv(289, 70%, 55%)
CMYKcmyk(12.9%, 69.8%, 0%, 45.5%)
CIE-LABlab(33.10, 48.40, -38.10)
CIE-LCHlch(33.10, 61.59, 321.79°)
OKLaboklab(44.44% 0.1253 -0.1066)
OKLCHoklch(44.44% 0.165 319.6)
XYZxyz(13.3727, 7.5856, 25.1809)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A8B #3C8B2A
analogous
#482A8B #792A8B #8B2A6C
triadic
#792A8B #8B792A #2A8B79
tetradic
#792A8B #8B482A #3C8B2A #2A6C8B
square
#792A8B #8B482A #3C8B2A #2A6C8B
split-complementary
#792A8B #6C8B2A #2A8B48
monochromatic
#270E2D #501C5C #792A8B #A238BA #BB60CF

Accessibility & contrast

On white

8.34
#792A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#792A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792A8B
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A8B#FFFFFF#000000##FFFFFF
##792A8B1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02498E
Deuteranopia (green-blind)
#325189
Tritanopia (blue-blind)
#793C57
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #792a8b;
/* rgb */ color: rgb(121, 42, 139);
/* oklch */ color: oklch(44.4% 0.165 319.6);
Tailwind
colors: {
  custom: {
    50: '#a36bad',
    500: '#792a8b',
    950: '#000000',
  },
}
SCSS
$custom: #792a8b;
$custom-light: #a36bad;
$custom-dark: #000000;
JSON
{
  "hex": "#792a8b",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 288.866,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44438,
    "c": 0.16457,
    "h": 319.6
  },
  "luminance": 0.07585
}

Semantic roles & 50–950 ramp

primary
#792A8B
secondary
#6CB55C
accent
#DD4B66
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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