#792DAB#792DAB

#792DAB is a mid, vivid violet. Relative luminance 0.089; OKLCH L 47.0% C 0.192 H 308.1°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#792DAB
RGBrgb(121, 45, 171)
HSLhsl(276, 58%, 42%)
HSVhsv(276, 74%, 67%)
CMYKcmyk(29.2%, 73.7%, 0%, 32.9%)
CIE-LABlab(35.76, 53.98, -53.26)
CIE-LCHlch(35.76, 75.83, 315.38°)
OKLaboklab(47.03% 0.1186 -0.1511)
OKLCHoklch(47.03% 0.192 308.1)
XYZxyz(16.1727, 8.8822, 39.3826)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792DAB #5FAB2D
analogous
#3A2DAB #792DAB #AB2D9E
triadic
#792DAB #AB792D #2DAB79
tetradic
#792DAB #AB3A2D #5FAB2D #2D9EAB
square
#792DAB #AB3A2D #5FAB2D #2D9EAB
split-complementary
#792DAB #9EAB2D #2DAB3A
monochromatic
#34144A #57207B #792DAB #9947CE #B477DB

Accessibility & contrast

On white

7.56
#792DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#792DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792DAB
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792DAB#FFFFFF#000000##FFFFFF
##792DAB1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#0055A8
Tritanopia (blue-blind)
#714B6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #792dab;
/* rgb */ color: rgb(121, 45, 171);
/* oklch */ color: oklch(47.0% 0.192 308.1);
Tailwind
colors: {
  custom: {
    50: '#a46dc5',
    500: '#792dab',
    950: '#000000',
  },
}
SCSS
$custom: #792dab;
$custom-light: #a46dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#792dab",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 276.19,
    "s": 58.333,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47028,
    "c": 0.19211,
    "h": 308.1
  },
  "luminance": 0.08882
}

Semantic roles & 50–950 ramp

primary
#792DAB
secondary
#91C371
accent
#E24684
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #792DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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