#792D87#792D87

#792D87 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.5% C 0.157 H 321.1°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#792D87
RGBrgb(121, 45, 135)
HSLhsl(291, 50%, 35%)
HSVhsv(291, 67%, 53%)
CMYKcmyk(10.4%, 66.7%, 0%, 47.1%)
CIE-LABlab(33.33, 46.27, -35.26)
CIE-LCHlch(33.33, 58.17, 322.69°)
OKLaboklab(44.52% 0.1219 -0.0984)
OKLCHoklch(44.52% 0.157 321.1)
XYZxyz(13.1962, 7.6917, 23.7065)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792D87 #3B872D
analogous
#4C2D87 #792D87 #872D68
triadic
#792D87 #87792D #2D8779
tetradic
#792D87 #874C2D #3B872D #2D6887
square
#792D87 #874C2D #3B872D #2D6887
split-complementary
#792D87 #68872D #2D874C
monochromatic
#270E2B #501E59 #792D87 #A23CB5 #BB63CB

Accessibility & contrast

On white

8.27
#792D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#792D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792D87
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792D87#FFFFFF#000000##FFFFFF
##792D871.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14498A
Deuteranopia (green-blind)
#375185
Tritanopia (blue-blind)
#7A3C56
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #792d87;
/* rgb */ color: rgb(121, 45, 135);
/* oklch */ color: oklch(44.5% 0.157 321.1);
Tailwind
colors: {
  custom: {
    50: '#a26caa',
    500: '#792d87',
    950: '#000000',
  },
}
SCSS
$custom: #792d87;
$custom-light: #a26caa;
$custom-dark: #000000;
JSON
{
  "hex": "#792d87",
  "rgb": {
    "r": 121,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 290.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44523,
    "c": 0.15662,
    "h": 321.1
  },
  "luminance": 0.07691
}

Semantic roles & 50–950 ramp

primary
#792D87
secondary
#6BB25E
accent
#DA4E64
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #792D87

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

Preview Lab → · Contrast checker → · Palette generator →

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