#792B9C#792B9C

#792B9C is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.180 H 313.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#792B9C
RGBrgb(121, 43, 156)
HSLhsl(281, 57%, 39%)
HSVhsv(281, 72%, 61%)
CMYKcmyk(22.4%, 72.4%, 0%, 38.8%)
CIE-LABlab(34.38, 51.52, -46.45)
CIE-LCHlch(34.38, 69.37, 317.96°)
OKLaboklab(45.71% 0.1228 -0.1311)
OKLCHoklch(45.71% 0.18 313.1)
XYZxyz(14.7487, 8.1934, 32.2506)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792B9C #4E9C2B
analogous
#412B9C #792B9C #9C2B87
triadic
#792B9C #9C792B #2B9C79
tetradic
#792B9C #9C412B #4E9C2B #2B879C
square
#792B9C #9C412B #4E9C2B #2B879C
split-complementary
#792B9C #879C2B #2B9C41
monochromatic
#2F113C #541E6C #792B9C #9D3BC9 #B56BD6

Accessibility & contrast

On white

7.96
#792B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#792B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792B9C
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792B9C#FFFFFF#000000##FFFFFF
##792B9C1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#21539A
Tritanopia (blue-blind)
#754361
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792b9c;
/* rgb */ color: rgb(121, 43, 156);
/* oklch */ color: oklch(45.7% 0.180 313.1);
Tailwind
colors: {
  custom: {
    50: '#a46cba',
    500: '#792b9c',
    950: '#000000',
  },
}
SCSS
$custom: #792b9c;
$custom-light: #a46cba;
$custom-dark: #000000;
JSON
{
  "hex": "#792b9c",
  "rgb": {
    "r": 121,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 281.416,
    "s": 56.784,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45712,
    "c": 0.17967,
    "h": 313.1
  },
  "luminance": 0.08193
}

Semantic roles & 50–950 ramp

primary
#792B9C
secondary
#81BD66
accent
#E04877
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #792B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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