#792EB6#792EB6

#792EB6 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.202 H 304.9°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#792EB6
RGBrgb(121, 46, 182)
HSLhsl(273, 60%, 45%)
HSVhsv(273, 75%, 71%)
CMYKcmyk(33.5%, 74.7%, 0%, 28.6%)
CIE-LABlab(36.74, 56.07, -58.21)
CIE-LCHlch(36.74, 80.82, 313.92°)
OKLaboklab(47.98% 0.1155 -0.1657)
OKLCHoklch(47.98% 0.202 304.9)
XYZxyz(17.3037, 9.3964, 45.1490)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792EB6 #6BB62E
analogous
#352EB6 #792EB6 #B62EAF
triadic
#792EB6 #B6792E #2EB679
tetradic
#792EB6 #B6352E #6BB62E #2EAFB6
square
#792EB6 #B6352E #6BB62E #2EAFB6
split-complementary
#792EB6 #AFB62E #2EB635
monochromatic
#381554 #592285 #792EB6 #974FD2 #B480DF

Accessibility & contrast

On white

7.29
#792EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#792EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792EB6
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792EB6#FFFFFF#000000##FFFFFF
##792EB61.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #792eb6;
/* rgb */ color: rgb(121, 46, 182);
/* oklch */ color: oklch(48.0% 0.202 304.9);
Tailwind
colors: {
  custom: {
    50: '#a56ecd',
    500: '#792eb6',
    950: '#000000',
  },
}
SCSS
$custom: #792eb6;
$custom-light: #a56ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#792eb6",
  "rgb": {
    "r": 121,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 273.088,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47981,
    "c": 0.202,
    "h": 304.9
  },
  "luminance": 0.09396
}

Semantic roles & 50–950 ramp

primary
#792EB6
secondary
#9CC878
accent
#E3458C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #792EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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