#792D9E#792D9E

#792D9E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.179 H 312.3°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#792D9E
RGBrgb(121, 45, 158)
HSLhsl(280, 56%, 40%)
HSVhsv(280, 72%, 62%)
CMYKcmyk(23.4%, 71.5%, 0%, 38%)
CIE-LABlab(34.82, 51.10, -46.95)
CIE-LCHlch(34.82, 69.39, 317.42°)
OKLaboklab(46.07% 0.1205 -0.1326)
OKLCHoklch(46.07% 0.179 312.3)
XYZxyz(14.9940, 8.4108, 33.1747)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792D9E #529E2D
analogous
#412D9E #792D9E #9E2D8B
triadic
#792D9E #9E792D #2D9E79
tetradic
#792D9E #9E412D #529E2D #2D8B9E
square
#792D9E #9E412D #529E2D #2D8B9E
split-complementary
#792D9E #8B9E2D #2D9E41
monochromatic
#30123F #551F6E #792D9E #9C40C9 #B46FD6

Accessibility & contrast

On white

7.83
#792D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#792D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792D9E
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792D9E#FFFFFF#000000##FFFFFF
##792D9E1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#21539C
Tritanopia (blue-blind)
#754562
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792d9e;
/* rgb */ color: rgb(121, 45, 158);
/* oklch */ color: oklch(46.1% 0.179 312.3);
Tailwind
colors: {
  custom: {
    50: '#a46dbb',
    500: '#792d9e',
    950: '#000000',
  },
}
SCSS
$custom: #792d9e;
$custom-light: #a46dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#792d9e",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 280.354,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4607,
    "c": 0.17917,
    "h": 312.3
  },
  "luminance": 0.0841
}

Semantic roles & 50–950 ramp

primary
#792D9E
secondary
#85BD69
accent
#DF497A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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