#792AA4#792AA4

#792AA4 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.2% C 0.189 H 310.6°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#792AA4
RGBrgb(121, 42, 164)
HSLhsl(279, 59%, 40%)
HSVhsv(279, 74%, 64%)
CMYKcmyk(26.2%, 74.4%, 0%, 35.7%)
CIE-LABlab(34.81, 53.67, -50.60)
CIE-LCHlch(34.81, 73.76, 316.68°)
OKLaboklab(46.19% 0.1227 -0.1433)
OKLCHoklch(46.19% 0.189 310.6)
XYZxyz(15.4127, 8.4016, 35.9245)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792AA4 #55A42A
analogous
#3C2AA4 #792AA4 #A42A92
triadic
#792AA4 #A4792A #2AA479
tetradic
#792AA4 #A43C2A #55A42A #2A92A4
square
#792AA4 #A43C2A #55A42A #2A92A4
split-complementary
#792AA4 #92A42A #2AA43C
monochromatic
#311143 #551E73 #792AA4 #9B3ECD #B46EDA

Accessibility & contrast

On white

7.84
#792AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792AA4
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792AA4#FFFFFF#000000##FFFFFF
##792AA41.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#1153A1
Tritanopia (blue-blind)
#734665
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792aa4;
/* rgb */ color: rgb(121, 42, 164);
/* oklch */ color: oklch(46.2% 0.189 310.6);
Tailwind
colors: {
  custom: {
    50: '#a46cc0',
    500: '#792aa4',
    950: '#000000',
  },
}
SCSS
$custom: #792aa4;
$custom-light: #a46cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#792aa4",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 278.852,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46192,
    "c": 0.18865,
    "h": 310.6
  },
  "luminance": 0.08401
}

Semantic roles & 50–950 ramp

primary
#792AA4
secondary
#88C169
accent
#E2457D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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