#792AA2#792AA2

#792AA2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.187 H 311.2°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#792AA2
RGBrgb(121, 42, 162)
HSLhsl(280, 59%, 40%)
HSVhsv(280, 74%, 64%)
CMYKcmyk(25.3%, 74.1%, 0%, 36.5%)
CIE-LABlab(34.66, 53.23, -49.63)
CIE-LCHlch(34.66, 72.78, 317.00°)
OKLaboklab(46.04% 0.123 -0.1404)
OKLCHoklch(46.04% 0.187 311.2)
XYZxyz(15.2335, 8.3299, 34.9808)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792AA2 #53A22A
analogous
#3D2AA2 #792AA2 #A22A8F
triadic
#792AA2 #A2792A #2AA279
tetradic
#792AA2 #A23D2A #53A22A #2A8FA2
square
#792AA2 #A23D2A #53A22A #2A8FA2
split-complementary
#792AA2 #8FA22A #2AA23D
monochromatic
#301141 #551D71 #792AA2 #9B3DCD #B46DD9

Accessibility & contrast

On white

7.88
#792AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#792AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792AA2
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792AA2#FFFFFF#000000##FFFFFF
##792AA21.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#16539F
Tritanopia (blue-blind)
#744564
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792aa2;
/* rgb */ color: rgb(121, 42, 162);
/* oklch */ color: oklch(46.0% 0.187 311.2);
Tailwind
colors: {
  custom: {
    50: '#a46bbe',
    500: '#792aa2',
    950: '#000000',
  },
}
SCSS
$custom: #792aa2;
$custom-light: #a46bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#792aa2",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 279.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.46044,
    "c": 0.18671,
    "h": 311.2
  },
  "luminance": 0.0833
}

Semantic roles & 50–950 ramp

primary
#792AA2
secondary
#86C068
accent
#E2467B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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