#792D97#792D97

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

Color values

HEX#792D97
RGBrgb(121, 45, 151)
HSLhsl(283, 54%, 38%)
HSVhsv(283, 70%, 59%)
CMYKcmyk(19.9%, 70.2%, 0%, 40.8%)
CIE-LABlab(34.35, 49.58, -43.47)
CIE-LCHlch(34.35, 65.94, 318.76°)
OKLaboklab(45.58% 0.1212 -0.1224)
OKLCHoklch(45.58% 0.172 314.7)
XYZxyz(14.4085, 8.1766, 30.0914)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792D97 #4B972D
analogous
#442D97 #792D97 #972D80
triadic
#792D97 #97792D #2D9779
tetradic
#792D97 #97442D #4B972D #2D8097
square
#792D97 #97442D #4B972D #2D8097
split-complementary
#792D97 #80972D #2D9744
monochromatic
#2D1139 #531F68 #792D97 #9E3CC5 #B66BD3

Accessibility & contrast

On white

7.97
#792D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792D97
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792D97#FFFFFF#000000##FFFFFF
##792D971.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#295395
Tritanopia (blue-blind)
#76425E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792d97;
/* rgb */ color: rgb(121, 45, 151);
/* oklch */ color: oklch(45.6% 0.172 314.7);
Tailwind
colors: {
  custom: {
    50: '#a36db6',
    500: '#792d97',
    950: '#000000',
  },
}
SCSS
$custom: #792d97;
$custom-light: #a36db6;
$custom-dark: #000000;
JSON
{
  "hex": "#792d97",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 283.019,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45578,
    "c": 0.17223,
    "h": 314.7
  },
  "luminance": 0.08176
}

Semantic roles & 50–950 ramp

primary
#792D97
secondary
#7EBA66
accent
#DD4A74
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #792D97

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

Preview Lab → · Contrast checker → · Palette generator →

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