#792AB9#792AB9

#792AB9 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.209 H 304.5°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#792AB9
RGBrgb(121, 42, 185)
HSLhsl(273, 63%, 45%)
HSVhsv(273, 77%, 73%)
CMYKcmyk(34.6%, 77.3%, 0%, 27.5%)
CIE-LABlab(36.41, 58.36, -60.52)
CIE-LCHlch(36.41, 84.08, 313.96°)
OKLaboklab(47.83% 0.1184 -0.1724)
OKLCHoklch(47.83% 0.209 304.5)
XYZxyz(17.4681, 9.2237, 46.7496)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792AB9 #6AB92A
analogous
#322AB9 #792AB9 #B92AB2
triadic
#792AB9 #B9792A #2AB979
tetradic
#792AB9 #B9322A #6AB92A #2AB2B9
square
#792AB9 #B9322A #6AB92A #2AB2B9
split-complementary
#792AB9 #B2B92A #2AB932
monochromatic
#381355 #581F87 #792AB9 #974AD6 #B47CE1

Accessibility & contrast

On white

7.38
#792AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#792AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792AB9
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792AB9#FFFFFF#000000##FFFFFF
##792AB91.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#6D4F71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #792ab9;
/* rgb */ color: rgb(121, 42, 185);
/* oklch */ color: oklch(47.8% 0.209 304.5);
Tailwind
colors: {
  custom: {
    50: '#a66dcf',
    500: '#792ab9',
    950: '#000000',
  },
}
SCSS
$custom: #792ab9;
$custom-light: #a66dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#792ab9",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 273.147,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47826,
    "c": 0.20916,
    "h": 304.5
  },
  "luminance": 0.09224
}

Semantic roles & 50–950 ramp

primary
#792AB9
secondary
#9BCA75
accent
#E6428B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #792AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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