#792F98#792F98

#792F98 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.171 H 314.2°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#792F98
RGBrgb(121, 47, 152)
HSLhsl(282, 53%, 39%)
HSVhsv(282, 69%, 60%)
CMYKcmyk(20.4%, 69.1%, 0%, 40.4%)
CIE-LABlab(34.73, 48.91, -43.46)
CIE-LCHlch(34.73, 65.43, 318.38°)
OKLaboklab(45.88% 0.1189 -0.1224)
OKLCHoklch(45.88% 0.171 314.2)
XYZxyz(14.5682, 8.3654, 30.5470)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792F98 #4E982F
analogous
#452F98 #792F98 #982F83
triadic
#792F98 #98792F #2F9879
tetradic
#792F98 #98452F #4E982F #2F8398
square
#792F98 #98452F #4E982F #2F8398
split-complementary
#792F98 #83982F #2F9845
monochromatic
#2F123B #542169 #792F98 #9D40C4 #B56FD2

Accessibility & contrast

On white

7.86
#792F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792F98
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792F98#FFFFFF#000000##FFFFFF
##792F981.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#2A5396
Tritanopia (blue-blind)
#764460
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792f98;
/* rgb */ color: rgb(121, 47, 152);
/* oklch */ color: oklch(45.9% 0.171 314.2);
Tailwind
colors: {
  custom: {
    50: '#a36eb7',
    500: '#792f98',
    950: '#000000',
  },
}
SCSS
$custom: #792f98;
$custom-light: #a36eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#792f98",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 282.286,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45875,
    "c": 0.17059,
    "h": 314.2
  },
  "luminance": 0.08365
}

Semantic roles & 50–950 ramp

primary
#792F98
secondary
#81BA69
accent
#DC4C76
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #792F98

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

Preview Lab → · Contrast checker → · Palette generator →

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