#792A9B#792A9B

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

Color values

HEX#792A9B
RGBrgb(121, 42, 155)
HSLhsl(282, 57%, 39%)
HSVhsv(282, 73%, 61%)
CMYKcmyk(21.9%, 72.9%, 0%, 39.2%)
CIE-LABlab(34.17, 51.72, -46.19)
CIE-LCHlch(34.17, 69.35, 318.23°)
OKLaboklab(45.54% 0.124 -0.1303)
OKLCHoklch(45.54% 0.18 313.6)
XYZxyz(14.6285, 8.0879, 31.7945)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A9B #4C9B2A
analogous
#402A9B #792A9B #9B2A84
triadic
#792A9B #9B792A #2A9B79
tetradic
#792A9B #9B402A #4C9B2A #2A849B
square
#792A9B #9B402A #4C9B2A #2A849B
split-complementary
#792A9B #849B2A #2A9B40
monochromatic
#2E103B #531D6B #792A9B #9E39C9 #B569D6

Accessibility & contrast

On white

8.02
#792A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#792A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792A9B
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A9B#FFFFFF#000000##FFFFFF
##792A9B1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#215299
Tritanopia (blue-blind)
#764260
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #792a9b;
/* rgb */ color: rgb(121, 42, 155);
/* oklch */ color: oklch(45.5% 0.180 313.6);
Tailwind
colors: {
  custom: {
    50: '#a46bb9',
    500: '#792a9b',
    950: '#000000',
  },
}
SCSS
$custom: #792a9b;
$custom-light: #a46bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#792a9b",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 281.947,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45535,
    "c": 0.17991,
    "h": 313.6
  },
  "luminance": 0.08087
}

Semantic roles & 50–950 ramp

primary
#792A9B
secondary
#7FBD64
accent
#E14775
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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