#792C9B#792C9B

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

Color values

HEX#792C9B
RGBrgb(121, 44, 155)
HSLhsl(282, 56%, 39%)
HSVhsv(282, 72%, 61%)
CMYKcmyk(21.9%, 71.6%, 0%, 39.2%)
CIE-LABlab(34.46, 50.88, -45.71)
CIE-LCHlch(34.46, 68.40, 318.06°)
OKLaboklab(45.75% 0.1219 -0.1289)
OKLCHoklch(45.75% 0.177 313.4)
XYZxyz(14.7012, 8.2333, 31.8188)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792C9B #4E9B2C
analogous
#422C9B #792C9B #9B2C86
triadic
#792C9B #9B792C #2C9B79
tetradic
#792C9B #9B422C #4E9B2C #2C869B
square
#792C9B #9B422C #4E9B2C #2C869B
split-complementary
#792C9B #869B2C #2C9B42
monochromatic
#2F113C #541E6B #792C9B #9D3CC8 #B56CD5

Accessibility & contrast

On white

7.93
#792C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#792C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792C9B
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792C9B#FFFFFF#000000##FFFFFF
##792C9B1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#235399
Tritanopia (blue-blind)
#764360
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #792c9b;
/* rgb */ color: rgb(121, 44, 155);
/* oklch */ color: oklch(45.7% 0.177 313.4);
Tailwind
colors: {
  custom: {
    50: '#a36cb9',
    500: '#792c9b',
    950: '#000000',
  },
}
SCSS
$custom: #792c9b;
$custom-light: #a36cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#792c9b",
  "rgb": {
    "r": 121,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 281.622,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45748,
    "c": 0.17745,
    "h": 313.4
  },
  "luminance": 0.08233
}

Semantic roles & 50–950 ramp

primary
#792C9B
secondary
#81BC67
accent
#DF4977
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #792C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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