#792D8D#792D8D

#792D8D is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.9% C 0.162 H 318.6°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#792D8D
RGBrgb(121, 45, 141)
HSLhsl(288, 52%, 36%)
HSVhsv(288, 68%, 55%)
CMYKcmyk(14.2%, 68.1%, 0%, 44.7%)
CIE-LABlab(33.70, 47.49, -38.38)
CIE-LCHlch(33.70, 61.06, 321.05°)
OKLaboklab(44.91% 0.1218 -0.1075)
OKLCHoklch(44.91% 0.162 318.6)
XYZxyz(13.6306, 7.8654, 25.9943)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792D8D #418D2D
analogous
#492D8D #792D8D #8D2D71
triadic
#792D8D #8D792D #2D8D79
tetradic
#792D8D #8D492D #418D2D #2D718D
square
#792D8D #8D492D #418D2D #2D718D
split-complementary
#792D8D #718D2D #2D8D49
monochromatic
#290F30 #511E5F #792D8D #A13CBB #B966CE

Accessibility & contrast

On white

8.16
#792D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#792D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792D8D
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792D8D#FFFFFF#000000##FFFFFF
##792D8D1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074A90
Deuteranopia (green-blind)
#32528B
Tritanopia (blue-blind)
#793E59
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #792d8d;
/* rgb */ color: rgb(121, 45, 141);
/* oklch */ color: oklch(44.9% 0.162 318.6);
Tailwind
colors: {
  custom: {
    50: '#a36caf',
    500: '#792d8d',
    950: '#000000',
  },
}
SCSS
$custom: #792d8d;
$custom-light: #a36caf;
$custom-dark: #000000;
JSON
{
  "hex": "#792d8d",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 287.5,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44907,
    "c": 0.16242,
    "h": 318.6
  },
  "luminance": 0.07865
}

Semantic roles & 50–950 ramp

primary
#792D8D
secondary
#72B561
accent
#DB4D6A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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