#792BA0#792BA0

#792BA0 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.184 H 311.8°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#792BA0
RGBrgb(121, 43, 160)
HSLhsl(280, 58%, 40%)
HSVhsv(280, 73%, 63%)
CMYKcmyk(24.4%, 73.1%, 0%, 37.3%)
CIE-LABlab(34.66, 52.38, -48.42)
CIE-LCHlch(34.66, 71.33, 317.25°)
OKLaboklab(46% 0.1223 -0.1369)
OKLCHoklch(46% 0.184 311.8)
XYZxyz(15.0930, 8.3312, 34.0639)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792BA0 #52A02B
analogous
#3F2BA0 #792BA0 #A02B8C
triadic
#792BA0 #A0792B #2BA079
tetradic
#792BA0 #A03F2B #52A02B #2B8CA0
square
#792BA0 #A03F2B #52A02B #2B8CA0
split-complementary
#792BA0 #8CA02B #2BA03F
monochromatic
#301140 #551E70 #792BA0 #9C3DCB #B46ED8

Accessibility & contrast

On white

7.88
#792BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#792BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792BA0
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792BA0#FFFFFF#000000##FFFFFF
##792BA01.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#1B539D
Tritanopia (blue-blind)
#744563
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792ba0;
/* rgb */ color: rgb(121, 43, 160);
/* oklch */ color: oklch(46.0% 0.184 311.8);
Tailwind
colors: {
  custom: {
    50: '#a46cbd',
    500: '#792ba0',
    950: '#000000',
  },
}
SCSS
$custom: #792ba0;
$custom-light: #a46cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#792ba0",
  "rgb": {
    "r": 121,
    "g": 43,
    "b": 160
  },
  "hsl": {
    "h": 280,
    "s": 57.635,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46,
    "c": 0.18358,
    "h": 311.8
  },
  "luminance": 0.08331
}

Semantic roles & 50–950 ramp

primary
#792BA0
secondary
#85BF68
accent
#E1477A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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