#792F9E#792F9E

#792F9E is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.177 H 312.1°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#792F9E
RGBrgb(121, 47, 158)
HSLhsl(280, 54%, 40%)
HSVhsv(280, 70%, 62%)
CMYKcmyk(23.4%, 70.3%, 0%, 38%)
CIE-LABlab(35.14, 50.22, -46.45)
CIE-LCHlch(35.14, 68.40, 317.23°)
OKLaboklab(46.29% 0.1183 -0.1311)
OKLCHoklch(46.29% 0.177 312.1)
XYZxyz(15.0721, 8.5670, 33.2008)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792F9E #549E2F
analogous
#422F9E #792F9E #9E2F8B
triadic
#792F9E #9E792F #2F9E79
tetradic
#792F9E #9E422F #549E2F #2F8B9E
square
#792F9E #9E422F #549E2F #2F8B9E
split-complementary
#792F9E #8B9E2F #2F9E42
monochromatic
#311340 #55216F #792F9E #9B43C7 #B472D5

Accessibility & contrast

On white

7.74
#792F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#792F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792F9E
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792F9E#FFFFFF#000000##FFFFFF
##792F9E1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #792f9e;
/* rgb */ color: rgb(121, 47, 158);
/* oklch */ color: oklch(46.3% 0.177 312.1);
Tailwind
colors: {
  custom: {
    50: '#a36ebb',
    500: '#792f9e',
    950: '#000000',
  },
}
SCSS
$custom: #792f9e;
$custom-light: #a36ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#792f9e",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 280,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46293,
    "c": 0.17662,
    "h": 312.1
  },
  "luminance": 0.08567
}

Semantic roles & 50–950 ramp

primary
#792F9E
secondary
#87BD6C
accent
#DE4A7B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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