#792CA2#792CA2

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

Color values

HEX#792CA2
RGBrgb(121, 44, 162)
HSLhsl(279, 57%, 40%)
HSVhsv(279, 73%, 64%)
CMYKcmyk(25.3%, 72.8%, 0%, 36.5%)
CIE-LABlab(34.95, 52.40, -49.16)
CIE-LCHlch(34.95, 71.85, 316.83°)
OKLaboklab(46.25% 0.121 -0.1391)
OKLCHoklch(46.25% 0.184 311)
XYZxyz(15.3062, 8.4753, 35.0050)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792CA2 #55A22C
analogous
#3E2CA2 #792CA2 #A22C90
triadic
#792CA2 #A2792C #2CA279
tetradic
#792CA2 #A23E2C #55A22C #2C90A2
square
#792CA2 #A23E2C #55A22C #2C90A2
split-complementary
#792CA2 #90A22C #2CA23E
monochromatic
#311242 #551F72 #792CA2 #9B40CB #B470D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##792CA2#FFFFFF#000000##FFFFFF
##792CA21.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)
#004FA5
Deuteranopia (green-blind)
#19549F
Tritanopia (blue-blind)
#744664
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792ca2;
/* rgb */ color: rgb(121, 44, 162);
/* oklch */ color: oklch(46.3% 0.184 311.0);
Tailwind
colors: {
  custom: {
    50: '#a46cbe',
    500: '#792ca2',
    950: '#000000',
  },
}
SCSS
$custom: #792ca2;
$custom-light: #a46cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#792ca2",
  "rgb": {
    "r": 121,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 279.153,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46252,
    "c": 0.18435,
    "h": 311
  },
  "luminance": 0.08475
}

Semantic roles & 50–950 ramp

primary
#792CA2
secondary
#88BF6A
accent
#E1477D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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