#792B8E#792B8E

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

Color values

HEX#792B8E
RGBrgb(121, 43, 142)
HSLhsl(287, 54%, 36%)
HSVhsv(287, 70%, 56%)
CMYKcmyk(14.8%, 69.7%, 0%, 44.3%)
CIE-LABlab(33.45, 48.57, -39.40)
CIE-LCHlch(33.45, 62.54, 320.96°)
OKLaboklab(44.75% 0.1241 -0.1104)
OKLCHoklch(44.75% 0.166 318.3)
XYZxyz(13.6308, 7.7463, 26.3631)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792B8E #408E2B
analogous
#482B8E #792B8E #8E2B72
triadic
#792B8E #8E792B #2B8E79
tetradic
#792B8E #8E482B #408E2B #2B728E
square
#792B8E #8E482B #408E2B #2B728E
split-complementary
#792B8E #728E2B #2B8E48
monochromatic
#290F30 #511D5F #792B8E #A139BD #B963D0

Accessibility & contrast

On white

8.24
#792B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #792B8E
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792B8E#FFFFFF#000000##FFFFFF
##792B8E1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#30518C
Tritanopia (blue-blind)
#793E59
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #792b8e;
/* rgb */ color: rgb(121, 43, 142);
/* oklch */ color: oklch(44.7% 0.166 318.3);
Tailwind
colors: {
  custom: {
    50: '#a36bb0',
    500: '#792b8e',
    950: '#000000',
  },
}
SCSS
$custom: #792b8e;
$custom-light: #a36bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#792b8e",
  "rgb": {
    "r": 121,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 287.273,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44746,
    "c": 0.1661,
    "h": 318.3
  },
  "luminance": 0.07746
}

Semantic roles & 50–950 ramp

primary
#792B8E
secondary
#71B65F
accent
#DD4B6A
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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