#792EA5#792EA5

#792EA5 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.185 H 309.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#792EA5
RGBrgb(121, 46, 165)
HSLhsl(278, 56%, 41%)
HSVhsv(278, 72%, 65%)
CMYKcmyk(26.7%, 72.1%, 0%, 35.3%)
CIE-LABlab(35.47, 52.21, -50.13)
CIE-LCHlch(35.47, 72.38, 316.16°)
OKLaboklab(46.69% 0.1185 -0.1419)
OKLCHoklch(46.69% 0.185 309.9)
XYZxyz(15.6523, 8.7359, 36.4517)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792EA5 #5AA52E
analogous
#3E2EA5 #792EA5 #A52E96
triadic
#792EA5 #A5792E #2EA579
tetradic
#792EA5 #A53E2E #5AA52E #2E96A5
square
#792EA5 #A53E2E #5AA52E #2E96A5
split-complementary
#792EA5 #96A52E #2EA53E
monochromatic
#331345 #562175 #792EA5 #9A45CB #B475D8

Accessibility & contrast

On white

7.64
#792EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792EA5
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792EA5#FFFFFF#000000##FFFFFF
##792EA51.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#1655A2
Tritanopia (blue-blind)
#734966
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #792ea5;
/* rgb */ color: rgb(121, 46, 165);
/* oklch */ color: oklch(46.7% 0.185 309.9);
Tailwind
colors: {
  custom: {
    50: '#a46ec0',
    500: '#792ea5',
    950: '#000000',
  },
}
SCSS
$custom: #792ea5;
$custom-light: #a46ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#792ea5",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 277.815,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46687,
    "c": 0.18492,
    "h": 309.9
  },
  "luminance": 0.08736
}

Semantic roles & 50–950 ramp

primary
#792EA5
secondary
#8DC06F
accent
#E04880
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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