#792EA8#792EA8

#792EA8 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.188 H 308.9°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#792EA8
RGBrgb(121, 46, 168)
HSLhsl(277, 57%, 42%)
HSVhsv(277, 73%, 66%)
CMYKcmyk(28%, 72.6%, 0%, 34.1%)
CIE-LABlab(35.69, 52.88, -51.58)
CIE-LCHlch(35.69, 73.87, 315.71°)
OKLaboklab(46.91% 0.1181 -0.1462)
OKLCHoklch(46.91% 0.188 308.9)
XYZxyz(15.9286, 8.8464, 37.9066)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792EA8 #5DA82E
analogous
#3C2EA8 #792EA8 #A82E9A
triadic
#792EA8 #A8792E #2EA879
tetradic
#792EA8 #A83C2E #5DA82E #2E9AA8
square
#792EA8 #A83C2E #5DA82E #2E9AA8
split-complementary
#792EA8 #9AA82E #2EA83C
monochromatic
#341448 #562178 #792EA8 #9947CD #B477DA

Accessibility & contrast

On white

7.58
#792EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#792EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792EA8
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792EA8#FFFFFF#000000##FFFFFF
##792EA81.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0E55A5
Tritanopia (blue-blind)
#724A68
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #792ea8;
/* rgb */ color: rgb(121, 46, 168);
/* oklch */ color: oklch(46.9% 0.188 308.9);
Tailwind
colors: {
  custom: {
    50: '#a46ec3',
    500: '#792ea8',
    950: '#000000',
  },
}
SCSS
$custom: #792ea8;
$custom-light: #a46ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#792ea8",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 276.885,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46909,
    "c": 0.18793,
    "h": 308.9
  },
  "luminance": 0.08846
}

Semantic roles & 50–950 ramp

primary
#792EA8
secondary
#90C270
accent
#E04882
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #792EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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