#792E9F#792E9F

#792E9F is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.3% C 0.179 H 311.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#792E9F
RGBrgb(121, 46, 159)
HSLhsl(280, 55%, 40%)
HSVhsv(280, 71%, 62%)
CMYKcmyk(23.9%, 71.1%, 0%, 37.6%)
CIE-LABlab(35.05, 50.88, -47.20)
CIE-LCHlch(35.05, 69.40, 317.15°)
OKLaboklab(46.25% 0.1193 -0.1333)
OKLCHoklch(46.25% 0.179 311.8)
XYZxyz(15.1190, 8.5225, 33.6427)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792E9F #549F2E
analogous
#402E9F #792E9F #9F2E8C
triadic
#792E9F #9F792E #2E9F79
tetradic
#792E9F #9F402E #549F2E #2E8C9F
square
#792E9F #9F402E #549F2E #2E8C9F
split-complementary
#792E9F #8C9F2E #2E9F40
monochromatic
#311340 #552070 #792E9F #9B42C8 #B471D6

Accessibility & contrast

On white

7.77
#792E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#792E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792E9F
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792E9F#FFFFFF#000000##FFFFFF
##792E9F1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA2
Deuteranopia (green-blind)
#20549D
Tritanopia (blue-blind)
#744663
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792e9f;
/* rgb */ color: rgb(121, 46, 159);
/* oklch */ color: oklch(46.3% 0.179 311.8);
Tailwind
colors: {
  custom: {
    50: '#a46dbc',
    500: '#792e9f',
    950: '#000000',
  },
}
SCSS
$custom: #792e9f;
$custom-light: #a46dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#792e9f",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 279.823,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46252,
    "c": 0.1789,
    "h": 311.8
  },
  "luminance": 0.08522
}

Semantic roles & 50–950 ramp

primary
#792E9F
secondary
#87BE6B
accent
#DE497B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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