#792EA1#792EA1

#792EA1 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.4% C 0.181 H 311.2°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#792EA1
RGBrgb(121, 46, 161)
HSLhsl(279, 56%, 41%)
HSVhsv(279, 71%, 63%)
CMYKcmyk(24.8%, 71.4%, 0%, 36.9%)
CIE-LABlab(35.19, 51.32, -48.18)
CIE-LCHlch(35.19, 70.39, 316.81°)
OKLaboklab(46.4% 0.1191 -0.1362)
OKLCHoklch(46.4% 0.181 311.2)
XYZxyz(15.2940, 8.5925, 34.5642)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792EA1 #56A12E
analogous
#3F2EA1 #792EA1 #A12E90
triadic
#792EA1 #A1792E #2EA179
tetradic
#792EA1 #A13F2E #56A12E #2E90A1
square
#792EA1 #A13F2E #56A12E #2E90A1
split-complementary
#792EA1 #90A12E #2EA13F
monochromatic
#311342 #552071 #792EA1 #9B43C9 #B473D7

Accessibility & contrast

On white

7.73
#792EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#792EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792EA1
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792EA1#FFFFFF#000000##FFFFFF
##792EA11.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#1D549E
Tritanopia (blue-blind)
#744764
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #792ea1;
/* rgb */ color: rgb(121, 46, 161);
/* oklch */ color: oklch(46.4% 0.181 311.2);
Tailwind
colors: {
  custom: {
    50: '#a46dbd',
    500: '#792ea1',
    950: '#000000',
  },
}
SCSS
$custom: #792ea1;
$custom-light: #a46dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#792ea1",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 279.13,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46396,
    "c": 0.1809,
    "h": 311.2
  },
  "luminance": 0.08592
}

Semantic roles & 50–950 ramp

primary
#792EA1
secondary
#89BE6C
accent
#DF497D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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