#792BA1#792BA1

#792BA1 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.185 H 311.5°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#792BA1
RGBrgb(121, 43, 161)
HSLhsl(280, 58%, 40%)
HSVhsv(280, 73%, 63%)
CMYKcmyk(24.8%, 73.3%, 0%, 36.9%)
CIE-LABlab(34.73, 52.60, -48.91)
CIE-LCHlch(34.73, 71.83, 317.08°)
OKLaboklab(46.07% 0.1222 -0.1383)
OKLCHoklch(46.07% 0.185 311.5)
XYZxyz(15.1809, 8.3663, 34.5265)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792BA1 #53A12B
analogous
#3E2BA1 #792BA1 #A12B8E
triadic
#792BA1 #A1792B #2BA179
tetradic
#792BA1 #A13E2B #53A12B #2B8EA1
square
#792BA1 #A13E2B #53A12B #2B8EA1
split-complementary
#792BA1 #8EA12B #2BA13E
monochromatic
#301140 #551E71 #792BA1 #9B3ECB #B46ED8

Accessibility & contrast

On white

7.86
#792BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#792BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792BA1
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792BA1#FFFFFF#000000##FFFFFF
##792BA11.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#19539E
Tritanopia (blue-blind)
#744563
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792ba1;
/* rgb */ color: rgb(121, 43, 161);
/* oklch */ color: oklch(46.1% 0.185 311.5);
Tailwind
colors: {
  custom: {
    50: '#a46cbd',
    500: '#792ba1',
    950: '#000000',
  },
}
SCSS
$custom: #792ba1;
$custom-light: #a46cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#792ba1",
  "rgb": {
    "r": 121,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 279.661,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.46073,
    "c": 0.18456,
    "h": 311.5
  },
  "luminance": 0.08366
}

Semantic roles & 50–950 ramp

primary
#792BA1
secondary
#86BF69
accent
#E1477B
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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