#792E9D#792E9D

#792E9D is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.177 H 312.5°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#792E9D
RGBrgb(121, 46, 157)
HSLhsl(281, 55%, 40%)
HSVhsv(281, 71%, 62%)
CMYKcmyk(22.9%, 70.7%, 0%, 38.4%)
CIE-LABlab(34.91, 50.44, -46.21)
CIE-LCHlch(34.91, 68.41, 317.51°)
OKLaboklab(46.11% 0.1195 -0.1304)
OKLCHoklch(46.11% 0.177 312.5)
XYZxyz(14.9469, 8.4537, 32.7361)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792E9D #529D2E
analogous
#422E9D #792E9D #9D2E89
triadic
#792E9D #9D792E #2E9D79
tetradic
#792E9D #9D422E #529D2E #2E899D
square
#792E9D #9D422E #529D2E #2E899D
split-complementary
#792E9D #899D2E #2E9D42
monochromatic
#30123E #55206E #792E9D #9C41C7 #B470D5

Accessibility & contrast

On white

7.80
#792E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#792E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792E9D
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792E9D#FFFFFF#000000##FFFFFF
##792E9D1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#23549B
Tritanopia (blue-blind)
#754562
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792e9d;
/* rgb */ color: rgb(121, 46, 157);
/* oklch */ color: oklch(46.1% 0.177 312.5);
Tailwind
colors: {
  custom: {
    50: '#a36dbb',
    500: '#792e9d',
    950: '#000000',
  },
}
SCSS
$custom: #792e9d;
$custom-light: #a36dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#792e9d",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 280.541,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4611,
    "c": 0.1769,
    "h": 312.5
  },
  "luminance": 0.08453
}

Semantic roles & 50–950 ramp

primary
#792E9D
secondary
#85BD6A
accent
#DE4A7A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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