#792D8F#792D8F

#792D8F is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.164 H 317.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#792D8F
RGBrgb(121, 45, 143)
HSLhsl(287, 52%, 37%)
HSVhsv(287, 69%, 56%)
CMYKcmyk(15.4%, 68.5%, 0%, 43.9%)
CIE-LABlab(33.83, 47.90, -39.41)
CIE-LCHlch(33.83, 62.03, 320.56°)
OKLaboklab(45.04% 0.1217 -0.1105)
OKLCHoklch(45.04% 0.164 317.8)
XYZxyz(13.7808, 7.9255, 26.7851)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792D8F #438F2D
analogous
#482D8F #792D8F #8F2D74
triadic
#792D8F #8F792D #2D8F79
tetradic
#792D8F #8F482D #438F2D #2D748F
square
#792D8F #8F482D #438F2D #2D748F
split-complementary
#792D8F #748F2D #2D8F48
monochromatic
#2A1032 #521E60 #792D8F #A03CBE #B867CF

Accessibility & contrast

On white

8.12
#792D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#792D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792D8F
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792D8F#FFFFFF#000000##FFFFFF
##792D8F1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024B92
Deuteranopia (green-blind)
#31528D
Tritanopia (blue-blind)
#783F5A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #792d8f;
/* rgb */ color: rgb(121, 45, 143);
/* oklch */ color: oklch(45.0% 0.164 317.8);
Tailwind
colors: {
  custom: {
    50: '#a36cb0',
    500: '#792d8f',
    950: '#000000',
  },
}
SCSS
$custom: #792d8f;
$custom-light: #a36cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#792d8f",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 143
  },
  "hsl": {
    "h": 286.531,
    "s": 52.128,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45038,
    "c": 0.16438,
    "h": 317.8
  },
  "luminance": 0.07925
}

Semantic roles & 50–950 ramp

primary
#792D8F
secondary
#75B662
accent
#DC4C6C
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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