#792AA5#792AA5

#792AA5 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.3% C 0.190 H 310.3°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#792AA5
RGBrgb(121, 42, 165)
HSLhsl(279, 59%, 41%)
HSVhsv(279, 75%, 65%)
CMYKcmyk(26.7%, 74.5%, 0%, 35.3%)
CIE-LABlab(34.88, 53.89, -51.09)
CIE-LCHlch(34.88, 74.25, 316.53°)
OKLaboklab(46.27% 0.1225 -0.1447)
OKLCHoklch(46.27% 0.19 310.3)
XYZxyz(15.5033, 8.4378, 36.4020)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792AA5 #56A52A
analogous
#3C2AA5 #792AA5 #A52A93
triadic
#792AA5 #A5792A #2AA579
tetradic
#792AA5 #A53C2A #56A52A #2A93A5
square
#792AA5 #A53C2A #56A52A #2A93A5
split-complementary
#792AA5 #93A52A #2AA53C
monochromatic
#311143 #551E74 #792AA5 #9B3ECE #B46FDA

Accessibility & contrast

On white

7.81
#792AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792AA5
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792AA5#FFFFFF#000000##FFFFFF
##792AA51.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0E53A2
Tritanopia (blue-blind)
#734665
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792aa5;
/* rgb */ color: rgb(121, 42, 165);
/* oklch */ color: oklch(46.3% 0.190 310.3);
Tailwind
colors: {
  custom: {
    50: '#a46cc0',
    500: '#792aa5',
    950: '#000000',
  },
}
SCSS
$custom: #792aa5;
$custom-light: #a46cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#792aa5",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 278.537,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46267,
    "c": 0.18963,
    "h": 310.3
  },
  "luminance": 0.08437
}

Semantic roles & 50–950 ramp

primary
#792AA5
secondary
#89C169
accent
#E3457E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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