#792C8B#792C8B

#792C8B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.162 H 319.5°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#792C8B
RGBrgb(121, 44, 139)
HSLhsl(289, 52%, 36%)
HSVhsv(289, 68%, 55%)
CMYKcmyk(12.9%, 68.3%, 0%, 45.5%)
CIE-LABlab(33.42, 47.52, -37.60)
CIE-LCHlch(33.42, 60.60, 321.65°)
OKLaboklab(44.66% 0.123 -0.1052)
OKLCHoklch(44.66% 0.162 319.5)
XYZxyz(13.4454, 7.7310, 25.2051)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792C8B #3E8B2C
analogous
#492C8B #792C8B #8B2C6D
triadic
#792C8B #8B792C #2C8B79
tetradic
#792C8B #8B492C #3E8B2C #2C6D8B
square
#792C8B #8B492C #3E8B2C #2C6D8B
split-complementary
#792C8B #6D8B2C #2C8B49
monochromatic
#280F2E #511D5D #792C8B #A13BB9 #BA64CE

Accessibility & contrast

On white

8.25
#792C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#792C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792C8B
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792C8B#FFFFFF#000000##FFFFFF
##792C8B1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09498E
Deuteranopia (green-blind)
#335189
Tritanopia (blue-blind)
#793D58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #792c8b;
/* rgb */ color: rgb(121, 44, 139);
/* oklch */ color: oklch(44.7% 0.162 319.5);
Tailwind
colors: {
  custom: {
    50: '#a36cad',
    500: '#792c8b',
    950: '#000000',
  },
}
SCSS
$custom: #792c8b;
$custom-light: #a36cad;
$custom-dark: #000000;
JSON
{
  "hex": "#792c8b",
  "rgb": {
    "r": 121,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 288.632,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44662,
    "c": 0.16186,
    "h": 319.5
  },
  "luminance": 0.0773
}

Semantic roles & 50–950 ramp

primary
#792C8B
secondary
#6FB45F
accent
#DB4C68
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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