#792CAB#792CAB

#792CAB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.193 H 308.2°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#792CAB
RGBrgb(121, 44, 171)
HSLhsl(276, 59%, 42%)
HSVhsv(276, 74%, 67%)
CMYKcmyk(29.2%, 74.3%, 0%, 32.9%)
CIE-LABlab(35.61, 54.40, -53.50)
CIE-LCHlch(35.61, 76.30, 315.48°)
OKLaboklab(46.92% 0.1196 -0.1518)
OKLCHoklch(46.92% 0.193 308.2)
XYZxyz(16.1350, 8.8068, 39.3701)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792CAB #5EAB2C
analogous
#3A2CAB #792CAB #AB2C9E
triadic
#792CAB #AB792C #2CAB79
tetradic
#792CAB #AB3A2C #5EAB2C #2C9EAB
square
#792CAB #AB3A2C #5EAB2C #2C9EAB
split-complementary
#792CAB #9EAB2C #2CAB3A
monochromatic
#34134A #571F7A #792CAB #9945CF #B476DC

Accessibility & contrast

On white

7.60
#792CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#792CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792CAB
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792CAB#FFFFFF#000000##FFFFFF
##792CAB1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #792cab;
/* rgb */ color: rgb(121, 44, 171);
/* oklch */ color: oklch(46.9% 0.193 308.2);
Tailwind
colors: {
  custom: {
    50: '#a46dc5',
    500: '#792cab',
    950: '#000000',
  },
}
SCSS
$custom: #792cab;
$custom-light: #a46dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#792cab",
  "rgb": {
    "r": 121,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 276.378,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46924,
    "c": 0.19325,
    "h": 308.2
  },
  "luminance": 0.08807
}

Semantic roles & 50–950 ramp

primary
#792CAB
secondary
#90C36F
accent
#E24683
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #792CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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