#792F9B#792F9B

#792F9B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.174 H 313.1°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#792F9B
RGBrgb(121, 47, 155)
HSLhsl(281, 53%, 40%)
HSVhsv(281, 70%, 61%)
CMYKcmyk(21.9%, 69.7%, 0%, 39.2%)
CIE-LABlab(34.93, 49.56, -44.96)
CIE-LCHlch(34.93, 66.91, 317.79°)
OKLaboklab(46.08% 0.1186 -0.1268)
OKLCHoklch(46.08% 0.174 313.1)
XYZxyz(14.8170, 8.4650, 31.8574)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792F9B #519B2F
analogous
#432F9B #792F9B #9B2F87
triadic
#792F9B #9B792F #2F9B79
tetradic
#792F9B #9B432F #519B2F #2F879B
square
#792F9B #9B432F #519B2F #2F879B
split-complementary
#792F9B #879B2F #2F9B43
monochromatic
#30133D #54216C #792F9B #9C42C6 #B571D4

Accessibility & contrast

On white

7.80
#792F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#792F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792F9B
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792F9B#FFFFFF#000000##FFFFFF
##792F9B1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#275499
Tritanopia (blue-blind)
#754561
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792f9b;
/* rgb */ color: rgb(121, 47, 155);
/* oklch */ color: oklch(46.1% 0.174 313.1);
Tailwind
colors: {
  custom: {
    50: '#a36eb9',
    500: '#792f9b',
    950: '#000000',
  },
}
SCSS
$custom: #792f9b;
$custom-light: #a36eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#792f9b",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 281.111,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46083,
    "c": 0.1736,
    "h": 313.1
  },
  "luminance": 0.08465
}

Semantic roles & 50–950 ramp

primary
#792F9B
secondary
#84BB6A
accent
#DD4B79
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #792F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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