#792E9E#792E9E

#792E9E is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.178 H 312.2°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#792E9E
RGBrgb(121, 46, 158)
HSLhsl(280, 55%, 40%)
HSVhsv(280, 71%, 62%)
CMYKcmyk(23.4%, 70.9%, 0%, 38%)
CIE-LABlab(34.98, 50.66, -46.70)
CIE-LCHlch(34.98, 68.90, 317.33°)
OKLaboklab(46.18% 0.1194 -0.1319)
OKLCHoklch(46.18% 0.178 312.2)
XYZxyz(15.0326, 8.4880, 33.1876)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792E9E #539E2E
analogous
#412E9E #792E9E #9E2E8B
triadic
#792E9E #9E792E #2E9E79
tetradic
#792E9E #9E412E #539E2E #2E8B9E
square
#792E9E #9E412E #539E2E #2E8B9E
split-complementary
#792E9E #8B9E2E #2E9E41
monochromatic
#30123F #55206F #792E9E #9B41C8 #B471D6

Accessibility & contrast

On white

7.78
#792E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#792E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792E9E
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792E9E#FFFFFF#000000##FFFFFF
##792E9E1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA1
Deuteranopia (green-blind)
#22549C
Tritanopia (blue-blind)
#754663
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792e9e;
/* rgb */ color: rgb(121, 46, 158);
/* oklch */ color: oklch(46.2% 0.178 312.2);
Tailwind
colors: {
  custom: {
    50: '#a36dbb',
    500: '#792e9e',
    950: '#000000',
  },
}
SCSS
$custom: #792e9e;
$custom-light: #a36dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#792e9e",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 280.179,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.46181,
    "c": 0.1779,
    "h": 312.2
  },
  "luminance": 0.08488
}

Semantic roles & 50–950 ramp

primary
#792E9E
secondary
#86BD6B
accent
#DE4A7B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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