#792A98#792A98

#792A98 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.177 H 314.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#792A98
RGBrgb(121, 42, 152)
HSLhsl(283, 57%, 38%)
HSVhsv(283, 72%, 60%)
CMYKcmyk(20.4%, 72.4%, 0%, 40.4%)
CIE-LABlab(33.96, 51.09, -44.70)
CIE-LCHlch(33.96, 67.88, 318.81°)
OKLaboklab(45.32% 0.1244 -0.126)
OKLCHoklch(45.32% 0.177 314.6)
XYZxyz(14.3797, 7.9884, 30.4841)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792A98 #49982A
analogous
#422A98 #792A98 #982A80
triadic
#792A98 #98792A #2A9879
tetradic
#792A98 #98422A #49982A #2A8098
square
#792A98 #98422A #49982A #2A8098
split-complementary
#792A98 #80982A #2A9842
monochromatic
#2D1038 #531D68 #792A98 #9F37C8 #B667D5

Accessibility & contrast

On white

8.08
#792A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#792A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792A98
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792A98#FFFFFF#000000##FFFFFF
##792A981.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#255296
Tritanopia (blue-blind)
#76415E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #792a98;
/* rgb */ color: rgb(121, 42, 152);
/* oklch */ color: oklch(45.3% 0.177 314.6);
Tailwind
colors: {
  custom: {
    50: '#a36bb7',
    500: '#792a98',
    950: '#000000',
  },
}
SCSS
$custom: #792a98;
$custom-light: #a36bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#792a98",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 152
  },
  "hsl": {
    "h": 283.091,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45322,
    "c": 0.17701,
    "h": 314.6
  },
  "luminance": 0.07988
}

Semantic roles & 50–950 ramp

primary
#792A98
secondary
#7BBB62
accent
#E04873
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792A98

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

Preview Lab → · Contrast checker → · Palette generator →

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