#792AA7#792AA7

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

Color values

HEX#792AA7
RGBrgb(121, 42, 167)
HSLhsl(278, 60%, 41%)
HSVhsv(278, 75%, 65%)
CMYKcmyk(27.5%, 74.9%, 0%, 34.5%)
CIE-LABlab(35.03, 54.33, -52.05)
CIE-LCHlch(35.03, 75.24, 316.22°)
OKLaboklab(46.42% 0.1222 -0.1476)
OKLCHoklch(46.42% 0.192 309.6)
XYZxyz(15.6868, 8.5112, 37.3682)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792AA7 #58A72A
analogous
#3A2AA7 #792AA7 #A72A96
triadic
#792AA7 #A7792A #2AA779
tetradic
#792AA7 #A73A2A #58A72A #2A96A7
square
#792AA7 #A73A2A #58A72A #2A96A7
split-complementary
#792AA7 #96A72A #2AA73A
monochromatic
#321145 #561E76 #792AA7 #9A3FCF #B470DB

Accessibility & contrast

On white

7.77
#792AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#792AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792AA7
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792AA7#FFFFFF#000000##FFFFFF
##792AA71.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0753A4
Tritanopia (blue-blind)
#724767
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #792aa7;
/* rgb */ color: rgb(121, 42, 167);
/* oklch */ color: oklch(46.4% 0.192 309.6);
Tailwind
colors: {
  custom: {
    50: '#a46cc2',
    500: '#792aa7',
    950: '#000000',
  },
}
SCSS
$custom: #792aa7;
$custom-light: #a46cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#792aa7",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 277.92,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46417,
    "c": 0.19158,
    "h": 309.6
  },
  "luminance": 0.08511
}

Semantic roles & 50–950 ramp

primary
#792AA7
secondary
#8BC26B
accent
#E3457F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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