#792BA6#792BA6

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

Color values

HEX#792BA6
RGBrgb(121, 43, 166)
HSLhsl(278, 59%, 41%)
HSVhsv(278, 74%, 65%)
CMYKcmyk(27.1%, 74.1%, 0%, 34.9%)
CIE-LABlab(35.10, 53.70, -51.34)
CIE-LCHlch(35.10, 74.29, 316.29°)
OKLaboklab(46.44% 0.1214 -0.1455)
OKLCHoklch(46.44% 0.189 309.8)
XYZxyz(15.6306, 8.5462, 36.8952)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792BA6 #58A62B
analogous
#3B2BA6 #792BA6 #A62B95
triadic
#792BA6 #A6792B #2BA679
tetradic
#792BA6 #A63B2B #58A62B #2B95A6
square
#792BA6 #A63B2B #58A62B #2B95A6
split-complementary
#792BA6 #95A62B #2BA63B
monochromatic
#321245 #561E75 #792BA6 #9A41CE #B471DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##792BA6#FFFFFF#000000##FFFFFF
##792BA61.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)
#004FA9
Deuteranopia (green-blind)
#0D54A3
Tritanopia (blue-blind)
#734766
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #792ba6;
/* rgb */ color: rgb(121, 43, 166);
/* oklch */ color: oklch(46.4% 0.189 309.8);
Tailwind
colors: {
  custom: {
    50: '#a46cc1',
    500: '#792ba6',
    950: '#000000',
  },
}
SCSS
$custom: #792ba6;
$custom-light: #a46cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#792ba6",
  "rgb": {
    "r": 121,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 278.049,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46443,
    "c": 0.18947,
    "h": 309.8
  },
  "luminance": 0.08546
}

Semantic roles & 50–950 ramp

primary
#792BA6
secondary
#8BC16B
accent
#E2467F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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