#792F97#792F97

#792F97 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.170 H 314.5°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#792F97
RGBrgb(121, 47, 151)
HSLhsl(283, 53%, 39%)
HSVhsv(283, 69%, 59%)
CMYKcmyk(19.9%, 68.9%, 0%, 40.8%)
CIE-LABlab(34.67, 48.69, -42.96)
CIE-LCHlch(34.67, 64.93, 318.58°)
OKLaboklab(45.81% 0.1189 -0.1209)
OKLCHoklch(45.81% 0.17 314.5)
XYZxyz(14.4867, 8.3328, 30.1174)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792F97 #4D972F
analogous
#452F97 #792F97 #972F81
triadic
#792F97 #97792F #2F9779
tetradic
#792F97 #97452F #4D972F #2F8197
square
#792F97 #97452F #4D972F #2F8197
split-complementary
#792F97 #81972F #2F9745
monochromatic
#2E123A #542068 #792F97 #9D40C3 #B56ED2

Accessibility & contrast

On white

7.88
#792F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792F97
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792F97#FFFFFF#000000##FFFFFF
##792F971.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#2B5395
Tritanopia (blue-blind)
#76445F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792f97;
/* rgb */ color: rgb(121, 47, 151);
/* oklch */ color: oklch(45.8% 0.170 314.5);
Tailwind
colors: {
  custom: {
    50: '#a36eb6',
    500: '#792f97',
    950: '#000000',
  },
}
SCSS
$custom: #792f97;
$custom-light: #a36eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#792f97",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 282.692,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45807,
    "c": 0.16958,
    "h": 314.5
  },
  "luminance": 0.08332
}

Semantic roles & 50–950 ramp

primary
#792F97
secondary
#80B968
accent
#DC4C75
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #792F97

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

Preview Lab → · Contrast checker → · Palette generator →

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