#792AA6#792AA6

#792AA6 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.191 H 309.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#792AA6
RGBrgb(121, 42, 166)
HSLhsl(278, 60%, 41%)
HSVhsv(278, 75%, 65%)
CMYKcmyk(27.1%, 74.7%, 0%, 34.9%)
CIE-LABlab(34.95, 54.11, -51.57)
CIE-LCHlch(34.95, 74.75, 316.37°)
OKLaboklab(46.34% 0.1224 -0.1461)
OKLCHoklch(46.34% 0.191 309.9)
XYZxyz(15.5947, 8.4744, 36.8832)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792AA6 #57A62A
analogous
#3B2AA6 #792AA6 #A62A95
triadic
#792AA6 #A6792A #2AA679
tetradic
#792AA6 #A63B2A #57A62A #2A95A6
square
#792AA6 #A63B2A #57A62A #2A95A6
split-complementary
#792AA6 #95A62A #2AA63B
monochromatic
#321144 #551E75 #792AA6 #9A3FCE #B470DB

Accessibility & contrast

On white

7.79
#792AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792AA6
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792AA6#FFFFFF#000000##FFFFFF
##792AA61.007.792.697.79
#FFFFFF7.791.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA9
Deuteranopia (green-blind)
#0B53A3
Tritanopia (blue-blind)
#734766
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792aa6;
/* rgb */ color: rgb(121, 42, 166);
/* oklch */ color: oklch(46.3% 0.191 309.9);
Tailwind
colors: {
  custom: {
    50: '#a46cc1',
    500: '#792aa6',
    950: '#000000',
  },
}
SCSS
$custom: #792aa6;
$custom-light: #a46cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#792aa6",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 278.226,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46342,
    "c": 0.1906,
    "h": 309.9
  },
  "luminance": 0.08474
}

Semantic roles & 50–950 ramp

primary
#792AA6
secondary
#8AC26A
accent
#E3457E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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