#792CA1#792CA1

#792CA1 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.2% C 0.183 H 311.4°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#792CA1
RGBrgb(121, 44, 161)
HSLhsl(279, 57%, 40%)
HSVhsv(279, 73%, 63%)
CMYKcmyk(24.8%, 72.7%, 0%, 36.9%)
CIE-LABlab(34.88, 52.18, -48.67)
CIE-LCHlch(34.88, 71.36, 316.99°)
OKLaboklab(46.18% 0.1212 -0.1376)
OKLCHoklch(46.18% 0.183 311.4)
XYZxyz(15.2177, 8.4399, 34.5387)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792CA1 #54A12C
analogous
#3E2CA1 #792CA1 #A12C8E
triadic
#792CA1 #A1792C #2CA179
tetradic
#792CA1 #A13E2C #54A12C #2C8EA1
square
#792CA1 #A13E2C #54A12C #2C8EA1
split-complementary
#792CA1 #8EA12C #2CA13E
monochromatic
#311241 #551F71 #792CA1 #9B40CB #B470D8

Accessibility & contrast

On white

7.81
#792CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792CA1
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792CA1#FFFFFF#000000##FFFFFF
##792CA11.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#1B539E
Tritanopia (blue-blind)
#744664
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792ca1;
/* rgb */ color: rgb(121, 44, 161);
/* oklch */ color: oklch(46.2% 0.183 311.4);
Tailwind
colors: {
  custom: {
    50: '#a46cbd',
    500: '#792ca1',
    950: '#000000',
  },
}
SCSS
$custom: #792ca1;
$custom-light: #a46cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#792ca1",
  "rgb": {
    "r": 121,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 279.487,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46179,
    "c": 0.18336,
    "h": 311.4
  },
  "luminance": 0.0844
}

Semantic roles & 50–950 ramp

primary
#792CA1
secondary
#87BF6A
accent
#E0477C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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