#792E8D#792E8D

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

Color values

HEX#792E8D
RGBrgb(121, 46, 141)
HSLhsl(287, 51%, 37%)
HSVhsv(287, 67%, 55%)
CMYKcmyk(14.2%, 67.4%, 0%, 44.7%)
CIE-LABlab(33.86, 47.03, -38.12)
CIE-LCHlch(33.86, 60.54, 320.98°)
OKLaboklab(45.02% 0.1206 -0.1067)
OKLCHoklch(45.02% 0.161 318.5)
XYZxyz(13.6692, 7.9426, 26.0072)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792E8D #428D2E
analogous
#4A2E8D #792E8D #8D2E72
triadic
#792E8D #8D792E #2E8D79
tetradic
#792E8D #8D4A2E #428D2E #2E728D
square
#792E8D #8D4A2E #428D2E #2E728D
split-complementary
#792E8D #728D2E #2E8D4A
monochromatic
#2A1031 #511F5F #792E8D #A13DBB #B868CE

Accessibility & contrast

On white

8.11
#792E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792E8D
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792E8D#FFFFFF#000000##FFFFFF
##792E8D1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B90
Deuteranopia (green-blind)
#33528B
Tritanopia (blue-blind)
#793F59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #792e8d;
/* rgb */ color: rgb(121, 46, 141);
/* oklch */ color: oklch(45.0% 0.161 318.5);
Tailwind
colors: {
  custom: {
    50: '#a36daf',
    500: '#792e8d',
    950: '#000000',
  },
}
SCSS
$custom: #792e8d;
$custom-light: #a36daf;
$custom-dark: #000000;
JSON
{
  "hex": "#792e8d",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 287.368,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45024,
    "c": 0.16103,
    "h": 318.5
  },
  "luminance": 0.07942
}

Semantic roles & 50–950 ramp

primary
#792E8D
secondary
#74B562
accent
#DA4E6B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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