#792A8D#792A8D

#792A8D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.6% C 0.166 H 318.8°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#792A8D
RGBrgb(121, 42, 141)
HSLhsl(288, 54%, 36%)
HSVhsv(288, 70%, 55%)
CMYKcmyk(14.2%, 70.2%, 0%, 44.7%)
CIE-LABlab(33.23, 48.80, -39.13)
CIE-LCHlch(33.23, 62.55, 321.28°)
OKLaboklab(44.57% 0.1253 -0.1096)
OKLCHoklch(44.57% 0.166 318.8)
XYZxyz(13.5202, 7.6446, 25.9575)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A8D #3E8D2A
analogous
#472A8D #792A8D #8D2A6F
triadic
#792A8D #8D792A #2A8D79
tetradic
#792A8D #8D472A #3E8D2A #2A6F8D
square
#792A8D #8D472A #3E8D2A #2A6F8D
split-complementary
#792A8D #6F8D2A #2A8D47
monochromatic
#280E2F #511C5E #792A8D #A138BC #BA61D0

Accessibility & contrast

On white

8.30
#792A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#792A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792A8D
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A8D#FFFFFF#000000##FFFFFF
##792A8D1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#30518B
Tritanopia (blue-blind)
#793C58
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #792a8d;
/* rgb */ color: rgb(121, 42, 141);
/* oklch */ color: oklch(44.6% 0.166 318.8);
Tailwind
colors: {
  custom: {
    50: '#a36baf',
    500: '#792a8d',
    950: '#000000',
  },
}
SCSS
$custom: #792a8d;
$custom-light: #a36baf;
$custom-dark: #000000;
JSON
{
  "hex": "#792a8d",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 287.879,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4457,
    "c": 0.16647,
    "h": 318.8
  },
  "luminance": 0.07644
}

Semantic roles & 50–950 ramp

primary
#792A8D
secondary
#6FB65D
accent
#DD4A68
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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