#791A8D#791A8D

#791A8D is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.1% C 0.184 H 319.7°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#791A8D
RGBrgb(121, 26, 141)
HSLhsl(290, 69%, 33%)
HSVhsv(290, 82%, 55%)
CMYKcmyk(14.2%, 81.6%, 0%, 44.7%)
CIE-LABlab(31.18, 54.67, -42.43)
CIE-LCHlch(31.18, 69.20, 322.19°)
OKLaboklab(43.11% 0.1407 -0.1192)
OKLCHoklch(43.11% 0.184 319.7)
XYZxyz(13.0617, 6.7275, 25.8047)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791A8D #2E8D1A
analogous
#3F1A8D #791A8D #8D1A68
triadic
#791A8D #8D791A #1A8D79
tetradic
#791A8D #8D3F1A #2E8D1A #1A688D
square
#791A8D #8D3F1A #2E8D1A #1A688D
split-complementary
#791A8D #688D1A #1A8D3F
monochromatic
#200726 #4D1059 #791A8D #A524C1 #C245DD

Accessibility & contrast

On white

8.95
#791A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#791A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791A8D
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791A8D#FFFFFF#000000##FFFFFF
##791A8D1.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#254C8B
Tritanopia (blue-blind)
#793454
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #791a8d;
/* rgb */ color: rgb(121, 26, 141);
/* oklch */ color: oklch(43.1% 0.184 319.7);
Tailwind
colors: {
  custom: {
    50: '#a464af',
    500: '#791a8d',
    950: '#000000',
  },
}
SCSS
$custom: #791a8d;
$custom-light: #a464af;
$custom-dark: #000000;
JSON
{
  "hex": "#791a8d",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 289.565,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43111,
    "c": 0.18438,
    "h": 319.7
  },
  "luminance": 0.06727
}

Semantic roles & 50–950 ramp

primary
#791A8D
secondary
#5ABE45
accent
#EC3C5B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791A8D

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

Preview Lab → · Contrast checker → · Palette generator →

#791A8D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva