#792DB6#792DB6

#792DB6 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.203 H 305.0°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#792DB6
RGBrgb(121, 45, 182)
HSLhsl(273, 60%, 45%)
HSVhsv(273, 75%, 71%)
CMYKcmyk(33.5%, 75.3%, 0%, 28.6%)
CIE-LABlab(36.59, 56.48, -58.45)
CIE-LCHlch(36.59, 81.28, 314.02°)
OKLaboklab(47.88% 0.1164 -0.1664)
OKLCHoklch(47.88% 0.203 305)
XYZxyz(17.2651, 9.3192, 45.1361)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792DB6 #6AB62D
analogous
#352DB6 #792DB6 #B62DAE
triadic
#792DB6 #B6792D #2DB679
tetradic
#792DB6 #B6352D #6AB62D #2DAEB6
square
#792DB6 #B6352D #6AB62D #2DAEB6
split-complementary
#792DB6 #AEB62D #2DB635
monochromatic
#381554 #582185 #792DB6 #974DD3 #B47EDF

Accessibility & contrast

On white

7.33
#792DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#792DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792DB6
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792DB6#FFFFFF#000000##FFFFFF
##792DB61.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BA
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#6D4F70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #792db6;
/* rgb */ color: rgb(121, 45, 182);
/* oklch */ color: oklch(47.9% 0.203 305.0);
Tailwind
colors: {
  custom: {
    50: '#a56ecd',
    500: '#792db6',
    950: '#000000',
  },
}
SCSS
$custom: #792db6;
$custom-light: #a56ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#792db6",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 273.285,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47879,
    "c": 0.20308,
    "h": 305
  },
  "luminance": 0.09319
}

Semantic roles & 50–950 ramp

primary
#792DB6
secondary
#9BC877
accent
#E3448B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #792DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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