#792A9A#792A9A

#792A9A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.179 H 313.9°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#792A9A
RGBrgb(121, 42, 154)
HSLhsl(282, 57%, 38%)
HSVhsv(282, 73%, 60%)
CMYKcmyk(21.4%, 72.7%, 0%, 39.6%)
CIE-LABlab(34.10, 51.51, -45.70)
CIE-LCHlch(34.10, 68.86, 318.42°)
OKLaboklab(45.46% 0.1241 -0.1289)
OKLCHoklch(45.46% 0.179 313.9)
XYZxyz(14.5449, 8.0544, 31.3541)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A9A #4B9A2A
analogous
#412A9A #792A9A #9A2A83
triadic
#792A9A #9A792A #2A9A79
tetradic
#792A9A #9A412A #4B9A2A #2A839A
square
#792A9A #9A412A #4B9A2A #2A839A
split-complementary
#792A9A #839A2A #2A9A41
monochromatic
#2D103A #531D6A #792A9A #9E38C9 #B668D6

Accessibility & contrast

On white

8.04
#792A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#792A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792A9A
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A9A#FFFFFF#000000##FFFFFF
##792A9A1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9D
Deuteranopia (green-blind)
#235298
Tritanopia (blue-blind)
#76425F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #792a9a;
/* rgb */ color: rgb(121, 42, 154);
/* oklch */ color: oklch(45.5% 0.179 313.9);
Tailwind
colors: {
  custom: {
    50: '#a36bb8',
    500: '#792a9a',
    950: '#000000',
  },
}
SCSS
$custom: #792a9a;
$custom-light: #a36bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#792a9a",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 154
  },
  "hsl": {
    "h": 282.321,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45464,
    "c": 0.17894,
    "h": 313.9
  },
  "luminance": 0.08054
}

Semantic roles & 50–950 ramp

primary
#792A9A
secondary
#7EBC63
accent
#E04774
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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