#792CA4#792CA4

#792CA4 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.186 H 310.4°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#792CA4
RGBrgb(121, 44, 164)
HSLhsl(279, 58%, 41%)
HSVhsv(279, 73%, 64%)
CMYKcmyk(26.2%, 73.2%, 0%, 35.7%)
CIE-LABlab(35.10, 52.84, -50.13)
CIE-LCHlch(35.10, 72.84, 316.51°)
OKLaboklab(46.4% 0.1207 -0.1419)
OKLCHoklch(46.4% 0.186 310.4)
XYZxyz(15.4854, 8.5470, 35.9487)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792CA4 #57A42C
analogous
#3D2CA4 #792CA4 #A42C93
triadic
#792CA4 #A4792C #2CA479
tetradic
#792CA4 #A43D2C #57A42C #2C93A4
square
#792CA4 #A43D2C #57A42C #2C93A4
split-complementary
#792CA4 #93A42C #2CA43D
monochromatic
#321243 #551F74 #792CA4 #9A41CC #B471D9

Accessibility & contrast

On white

7.75
#792CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#792CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792CA4
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792CA4#FFFFFF#000000##FFFFFF
##792CA41.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#1554A1
Tritanopia (blue-blind)
#734765
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #792ca4;
/* rgb */ color: rgb(121, 44, 164);
/* oklch */ color: oklch(46.4% 0.186 310.4);
Tailwind
colors: {
  custom: {
    50: '#a46dc0',
    500: '#792ca4',
    950: '#000000',
  },
}
SCSS
$custom: #792ca4;
$custom-light: #a46dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#792ca4",
  "rgb": {
    "r": 121,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 278.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46399,
    "c": 0.18633,
    "h": 310.4
  },
  "luminance": 0.08547
}

Semantic roles & 50–950 ramp

primary
#792CA4
secondary
#8AC06B
accent
#E1477E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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