#792B8F#792B8F

#792B8F is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.167 H 317.9°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#792B8F
RGBrgb(121, 43, 143)
HSLhsl(287, 54%, 36%)
HSVhsv(287, 70%, 56%)
CMYKcmyk(15.4%, 69.9%, 0%, 43.9%)
CIE-LABlab(33.51, 48.78, -39.91)
CIE-LCHlch(33.51, 63.03, 320.71°)
OKLaboklab(44.81% 0.124 -0.1119)
OKLCHoklch(44.81% 0.167 317.9)
XYZxyz(13.7063, 7.7765, 26.7603)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792B8F #418F2B
analogous
#472B8F #792B8F #8F2B73
triadic
#792B8F #8F792B #2B8F79
tetradic
#792B8F #8F472B #418F2B #2B738F
square
#792B8F #8F472B #418F2B #2B738F
split-complementary
#792B8F #738F2B #2B8F47
monochromatic
#290F31 #511D60 #792B8F #A139BE #B964D0

Accessibility & contrast

On white

8.22
#792B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#792B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792B8F
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792B8F#FFFFFF#000000##FFFFFF
##792B8F1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#2F518D
Tritanopia (blue-blind)
#783E5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #792b8f;
/* rgb */ color: rgb(121, 43, 143);
/* oklch */ color: oklch(44.8% 0.167 317.9);
Tailwind
colors: {
  custom: {
    50: '#a36bb0',
    500: '#792b8f',
    950: '#000000',
  },
}
SCSS
$custom: #792b8f;
$custom-light: #a36bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#792b8f",
  "rgb": {
    "r": 121,
    "g": 43,
    "b": 143
  },
  "hsl": {
    "h": 286.8,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44813,
    "c": 0.16706,
    "h": 317.9
  },
  "luminance": 0.07776
}

Semantic roles & 50–950 ramp

primary
#792B8F
secondary
#72B75F
accent
#DD4B6B
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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