#792E9A#792E9A

#792E9A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.174 H 313.6°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#792E9A
RGBrgb(121, 46, 154)
HSLhsl(282, 54%, 39%)
HSVhsv(282, 70%, 60%)
CMYKcmyk(21.4%, 70.1%, 0%, 39.6%)
CIE-LABlab(34.71, 49.79, -44.72)
CIE-LCHlch(34.71, 66.92, 318.07°)
OKLaboklab(45.9% 0.1198 -0.126)
OKLCHoklch(45.9% 0.174 313.6)
XYZxyz(14.6939, 8.3525, 31.4037)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792E9A #4F9A2E
analogous
#432E9A #792E9A #9A2E85
triadic
#792E9A #9A792E #2E9A79
tetradic
#792E9A #9A432E #4F9A2E #2E859A
square
#792E9A #9A432E #4F9A2E #2E859A
split-complementary
#792E9A #859A2E #2E9A43
monochromatic
#2F123C #54206B #792E9A #9D3FC6 #B56FD4

Accessibility & contrast

On white

7.86
#792E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792E9A
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792E9A#FFFFFF#000000##FFFFFF
##792E9A1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9D
Deuteranopia (green-blind)
#275398
Tritanopia (blue-blind)
#764460
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792e9a;
/* rgb */ color: rgb(121, 46, 154);
/* oklch */ color: oklch(45.9% 0.174 313.6);
Tailwind
colors: {
  custom: {
    50: '#a36db8',
    500: '#792e9a',
    950: '#000000',
  },
}
SCSS
$custom: #792e9a;
$custom-light: #a36db8;
$custom-dark: #000000;
JSON
{
  "hex": "#792e9a",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 154
  },
  "hsl": {
    "h": 281.667,
    "s": 54,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45899,
    "c": 0.1739,
    "h": 313.6
  },
  "luminance": 0.08352
}

Semantic roles & 50–950 ramp

primary
#792E9A
secondary
#82BB69
accent
#DD4A77
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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