#792BAB#792BAB

#792BAB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.8% C 0.194 H 308.3°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#792BAB
RGBrgb(121, 43, 171)
HSLhsl(277, 60%, 42%)
HSVhsv(277, 75%, 67%)
CMYKcmyk(29.2%, 74.9%, 0%, 32.9%)
CIE-LABlab(35.47, 54.81, -53.74)
CIE-LCHlch(35.47, 76.75, 315.57°)
OKLaboklab(46.82% 0.1205 -0.1525)
OKLCHoklch(46.82% 0.194 308.3)
XYZxyz(16.0982, 8.7332, 39.3578)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792BAB #5DAB2B
analogous
#392BAB #792BAB #AB2B9D
triadic
#792BAB #AB792B #2BAB79
tetradic
#792BAB #AB392B #5DAB2B #2B9DAB
square
#792BAB #AB392B #5DAB2B #2B9DAB
split-complementary
#792BAB #9DAB2B #2BAB39
monochromatic
#341249 #561F7A #792BAB #9943D0 #B474DC

Accessibility & contrast

On white

7.65
#792BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#792BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792BAB
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792BAB#FFFFFF#000000##FFFFFF
##792BAB1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #792bab;
/* rgb */ color: rgb(121, 43, 171);
/* oklch */ color: oklch(46.8% 0.194 308.3);
Tailwind
colors: {
  custom: {
    50: '#a46cc5',
    500: '#792bab',
    950: '#000000',
  },
}
SCSS
$custom: #792bab;
$custom-light: #a46cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#792bab",
  "rgb": {
    "r": 121,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 276.563,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46822,
    "c": 0.19438,
    "h": 308.3
  },
  "luminance": 0.08733
}

Semantic roles & 50–950 ramp

primary
#792BAB
secondary
#90C46E
accent
#E34583
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #792BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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