#792F8E#792F8E

#792F8E is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.2% C 0.161 H 318.0°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#792F8E
RGBrgb(121, 47, 142)
HSLhsl(287, 50%, 37%)
HSVhsv(287, 67%, 56%)
CMYKcmyk(14.8%, 66.9%, 0%, 44.3%)
CIE-LABlab(34.09, 46.78, -38.37)
CIE-LCHlch(34.09, 60.51, 320.64°)
OKLaboklab(45.21% 0.1194 -0.1075)
OKLCHoklch(45.21% 0.161 318)
XYZxyz(13.7835, 8.0516, 26.4140)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792F8E #448E2F
analogous
#4A2F8E #792F8E #8E2F74
triadic
#792F8E #8E792F #2F8E79
tetradic
#792F8E #8E4A2F #448E2F #2F748E
square
#792F8E #8E4A2F #448E2F #2F748E
split-complementary
#792F8E #748E2F #2F8E4A
monochromatic
#2B1132 #522060 #792F8E #A03EBC #B86ACE

Accessibility & contrast

On white

8.05
#792F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#792F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792F8E
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792F8E#FFFFFF#000000##FFFFFF
##792F8E1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C4B91
Deuteranopia (green-blind)
#33538C
Tritanopia (blue-blind)
#79405A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #792f8e;
/* rgb */ color: rgb(121, 47, 142);
/* oklch */ color: oklch(45.2% 0.161 318.0);
Tailwind
colors: {
  custom: {
    50: '#a36daf',
    500: '#792f8e',
    950: '#000000',
  },
}
SCSS
$custom: #792f8e;
$custom-light: #a36daf;
$custom-dark: #000000;
JSON
{
  "hex": "#792f8e",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 286.737,
    "s": 50.265,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45207,
    "c": 0.16062,
    "h": 318
  },
  "luminance": 0.08051
}

Semantic roles & 50–950 ramp

primary
#792F8E
secondary
#76B564
accent
#DA4E6D
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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