#792D98#792D98

#792D98 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.173 H 314.4°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#792D98
RGBrgb(121, 45, 152)
HSLhsl(283, 54%, 39%)
HSVhsv(283, 70%, 60%)
CMYKcmyk(20.4%, 70.4%, 0%, 40.4%)
CIE-LABlab(34.41, 49.80, -43.97)
CIE-LCHlch(34.41, 66.43, 318.56°)
OKLaboklab(45.65% 0.1211 -0.1238)
OKLCHoklch(45.65% 0.173 314.4)
XYZxyz(14.4901, 8.2092, 30.5209)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792D98 #4C982D
analogous
#432D98 #792D98 #982D81
triadic
#792D98 #98792D #2D9879
tetradic
#792D98 #98432D #4C982D #2D8198
square
#792D98 #98432D #4C982D #2D8198
split-complementary
#792D98 #81982D #2D9843
monochromatic
#2E113A #531F69 #792D98 #9E3DC5 #B56CD3

Accessibility & contrast

On white

7.95
#792D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#792D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792D98
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792D98#FFFFFF#000000##FFFFFF
##792D981.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#285396
Tritanopia (blue-blind)
#76435F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792d98;
/* rgb */ color: rgb(121, 45, 152);
/* oklch */ color: oklch(45.6% 0.173 314.4);
Tailwind
colors: {
  custom: {
    50: '#a36db7',
    500: '#792d98',
    950: '#000000',
  },
}
SCSS
$custom: #792d98;
$custom-light: #a36db7;
$custom-dark: #000000;
JSON
{
  "hex": "#792d98",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 282.617,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45648,
    "c": 0.17322,
    "h": 314.4
  },
  "luminance": 0.08209
}

Semantic roles & 50–950 ramp

primary
#792D98
secondary
#7FBA66
accent
#DE4A75
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #792D98

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

Preview Lab → · Contrast checker → · Palette generator →

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