#792AB8#792AB8

#792AB8 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.208 H 304.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#792AB8
RGBrgb(121, 42, 184)
HSLhsl(273, 63%, 44%)
HSVhsv(273, 77%, 72%)
CMYKcmyk(34.2%, 77.2%, 0%, 27.8%)
CIE-LABlab(36.33, 58.14, -60.06)
CIE-LCHlch(36.33, 83.58, 314.07°)
OKLaboklab(47.75% 0.1186 -0.1711)
OKLCHoklch(47.75% 0.208 304.7)
XYZxyz(17.3629, 9.1817, 46.1956)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792AB8 #69B82A
analogous
#322AB8 #792AB8 #B82AB0
triadic
#792AB8 #B8792A #2AB879
tetradic
#792AB8 #B8322A #69B82A #2AB0B8
square
#792AB8 #B8322A #69B82A #2AB0B8
split-complementary
#792AB8 #B0B82A #2AB832
monochromatic
#371354 #581F86 #792AB8 #974AD6 #B47BE1

Accessibility & contrast

On white

7.40
#792AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792AB8
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792AB8#FFFFFF#000000##FFFFFF
##792AB81.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0055B5
Tritanopia (blue-blind)
#6D4F70
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #792ab8;
/* rgb */ color: rgb(121, 42, 184);
/* oklch */ color: oklch(47.7% 0.208 304.7);
Tailwind
colors: {
  custom: {
    50: '#a66cce',
    500: '#792ab8',
    950: '#000000',
  },
}
SCSS
$custom: #792ab8;
$custom-light: #a66cce;
$custom-dark: #000000;
JSON
{
  "hex": "#792ab8",
  "rgb": {
    "r": 121,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 273.38,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47746,
    "c": 0.20819,
    "h": 304.7
  },
  "luminance": 0.09182
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #792AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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