#792F8B#792F8B

#792F8B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.0% C 0.158 H 319.2°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#792F8B
RGBrgb(121, 47, 139)
HSLhsl(288, 49%, 36%)
HSVhsv(288, 66%, 55%)
CMYKcmyk(12.9%, 66.2%, 0%, 45.5%)
CIE-LABlab(33.91, 46.16, -36.82)
CIE-LCHlch(33.91, 59.05, 321.42°)
OKLaboklab(45.01% 0.1194 -0.1029)
OKLCHoklch(45.01% 0.158 319.2)
XYZxyz(13.5613, 7.9627, 25.2437)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792F8B #418B2F
analogous
#4B2F8B #792F8B #8B2F6F
triadic
#792F8B #8B792F #2F8B79
tetradic
#792F8B #8B4B2F #418B2F #2F6F8B
square
#792F8B #8B4B2F #418B2F #2F6F8B
split-complementary
#792F8B #6F8B2F #2F8B4B
monochromatic
#291030 #51205D #792F8B #A13EB9 #B968CC

Accessibility & contrast

On white

8.10
#792F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#792F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792F8B
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792F8B#FFFFFF#000000##FFFFFF
##792F8B1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124B8E
Deuteranopia (green-blind)
#355289
Tritanopia (blue-blind)
#793F59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #792f8b;
/* rgb */ color: rgb(121, 47, 139);
/* oklch */ color: oklch(45.0% 0.158 319.2);
Tailwind
colors: {
  custom: {
    50: '#a36dad',
    500: '#792f8b',
    950: '#000000',
  },
}
SCSS
$custom: #792f8b;
$custom-light: #a36dad;
$custom-dark: #000000;
JSON
{
  "hex": "#792f8b",
  "rgb": {
    "r": 121,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 288.261,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45014,
    "c": 0.15766,
    "h": 319.2
  },
  "luminance": 0.07962
}

Semantic roles & 50–950 ramp

primary
#792F8B
secondary
#72B363
accent
#D94F6A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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