#792EA6#792EA6

#792EA6 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.8% C 0.186 H 309.5°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#792EA6
RGBrgb(121, 46, 166)
HSLhsl(278, 57%, 42%)
HSVhsv(278, 72%, 65%)
CMYKcmyk(27.1%, 72.3%, 0%, 34.9%)
CIE-LABlab(35.54, 52.43, -50.61)
CIE-LCHlch(35.54, 72.87, 316.01°)
OKLaboklab(46.76% 0.1184 -0.1434)
OKLCHoklch(46.76% 0.186 309.5)
XYZxyz(15.7437, 8.7724, 36.9329)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792EA6 #5BA62E
analogous
#3D2EA6 #792EA6 #A62E97
triadic
#792EA6 #A6792E #2EA679
tetradic
#792EA6 #A63D2E #5BA62E #2E97A6
square
#792EA6 #A63D2E #5BA62E #2E97A6
split-complementary
#792EA6 #97A62E #2EA63D
monochromatic
#331346 #562176 #792EA6 #9946CC #B476D9

Accessibility & contrast

On white

7.62
#792EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#792EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792EA6
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792EA6#FFFFFF#000000##FFFFFF
##792EA61.007.622.757.62
#FFFFFF7.621.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#1455A3
Tritanopia (blue-blind)
#724967
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #792ea6;
/* rgb */ color: rgb(121, 46, 166);
/* oklch */ color: oklch(46.8% 0.186 309.5);
Tailwind
colors: {
  custom: {
    50: '#a46ec1',
    500: '#792ea6',
    950: '#000000',
  },
}
SCSS
$custom: #792ea6;
$custom-light: #a46ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#792ea6",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 277.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4676,
    "c": 0.18592,
    "h": 309.5
  },
  "luminance": 0.08772
}

Semantic roles & 50–950 ramp

primary
#792EA6
secondary
#8EC16F
accent
#E04881
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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