#792F9F#792F9F

#792F9F is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.4% C 0.178 H 311.7°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#792F9F
RGBrgb(121, 47, 159)
HSLhsl(280, 54%, 40%)
HSVhsv(280, 70%, 62%)
CMYKcmyk(23.9%, 70.4%, 0%, 37.6%)
CIE-LABlab(35.21, 50.44, -46.94)
CIE-LCHlch(35.21, 68.90, 317.06°)
OKLaboklab(46.36% 0.1182 -0.1326)
OKLCHoklch(46.36% 0.178 311.7)
XYZxyz(15.1585, 8.6016, 33.6559)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792F9F #559F2F
analogous
#412F9F #792F9F #9F2F8D
triadic
#792F9F #9F792F #2F9F79
tetradic
#792F9F #9F412F #559F2F #2F8D9F
square
#792F9F #9F412F #559F2F #2F8D9F
split-complementary
#792F9F #8D9F2F #2F9F41
monochromatic
#311341 #552170 #792F9F #9B44C8 #B473D6

Accessibility & contrast

On white

7.72
#792F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#792F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792F9F
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792F9F#FFFFFF#000000##FFFFFF
##792F9F1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#22549D
Tritanopia (blue-blind)
#744763
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #792f9f;
/* rgb */ color: rgb(121, 47, 159);
/* oklch */ color: oklch(46.4% 0.178 311.7);
Tailwind
colors: {
  custom: {
    50: '#a36ebc',
    500: '#792f9f',
    950: '#000000',
  },
}
SCSS
$custom: #792f9f;
$custom-light: #a36ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#792f9f",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 279.643,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46364,
    "c": 0.17763,
    "h": 311.7
  },
  "luminance": 0.08601
}

Semantic roles & 50–950 ramp

primary
#792F9F
secondary
#88BD6D
accent
#DE4A7C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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