#792FA2#792FA2

#792FA2 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.181 H 310.7°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#792FA2
RGBrgb(121, 47, 162)
HSLhsl(279, 55%, 41%)
HSVhsv(279, 71%, 64%)
CMYKcmyk(25.3%, 71%, 0%, 36.5%)
CIE-LABlab(35.41, 51.10, -48.42)
CIE-LCHlch(35.41, 70.39, 316.55°)
OKLaboklab(46.58% 0.1179 -0.1369)
OKLCHoklch(46.58% 0.181 310.7)
XYZxyz(15.4220, 8.7070, 35.0436)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792FA2 #58A22F
analogous
#3F2FA2 #792FA2 #A22F91
triadic
#792FA2 #A2792F #2FA279
tetradic
#792FA2 #A23F2F #58A22F #2F91A2
square
#792FA2 #A23F2F #58A22F #2F91A2
split-complementary
#792FA2 #91A22F #2FA23F
monochromatic
#321343 #562173 #792FA2 #9A45C9 #B475D7

Accessibility & contrast

On white

7.66
#792FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#792FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792FA2
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792FA2#FFFFFF#000000##FFFFFF
##792FA21.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#1D559F
Tritanopia (blue-blind)
#744865
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #792fa2;
/* rgb */ color: rgb(121, 47, 162);
/* oklch */ color: oklch(46.6% 0.181 310.7);
Tailwind
colors: {
  custom: {
    50: '#a46ebe',
    500: '#792fa2',
    950: '#000000',
  },
}
SCSS
$custom: #792fa2;
$custom-light: #a46ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#792fa2",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 278.609,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46579,
    "c": 0.18066,
    "h": 310.7
  },
  "luminance": 0.08707
}

Semantic roles & 50–950 ramp

primary
#792FA2
secondary
#8BBF6E
accent
#DE497F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #792FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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