#792DA0#792DA0

#792DA0 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.2% C 0.181 H 311.6°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#792DA0
RGBrgb(121, 45, 160)
HSLhsl(280, 56%, 40%)
HSVhsv(280, 72%, 63%)
CMYKcmyk(24.4%, 71.9%, 0%, 37.3%)
CIE-LABlab(34.96, 51.53, -47.94)
CIE-LCHlch(34.96, 70.38, 317.07°)
OKLaboklab(46.21% 0.1202 -0.1355)
OKLCHoklch(46.21% 0.181 311.6)
XYZxyz(15.1675, 8.4802, 34.0887)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792DA0 #54A02D
analogous
#3F2DA0 #792DA0 #A02D8E
triadic
#792DA0 #A0792D #2DA079
tetradic
#792DA0 #A03F2D #54A02D #2D8EA0
square
#792DA0 #A03F2D #54A02D #2D8EA0
split-complementary
#792DA0 #8EA02D #2DA03F
monochromatic
#311240 #552070 #792DA0 #9B41C9 #B470D7

Accessibility & contrast

On white

7.79
#792DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792DA0
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792DA0#FFFFFF#000000##FFFFFF
##792DA01.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#1E549D
Tritanopia (blue-blind)
#744663
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792da0;
/* rgb */ color: rgb(121, 45, 160);
/* oklch */ color: oklch(46.2% 0.181 311.6);
Tailwind
colors: {
  custom: {
    50: '#a46dbd',
    500: '#792da0',
    950: '#000000',
  },
}
SCSS
$custom: #792da0;
$custom-light: #a46dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#792da0",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 160
  },
  "hsl": {
    "h": 279.652,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46214,
    "c": 0.18115,
    "h": 311.6
  },
  "luminance": 0.0848
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #792DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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