#791A9A#791A9A

#791A9A is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.1% C 0.196 H 315.0°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#791A9A
RGBrgb(121, 26, 154)
HSLhsl(285, 71%, 35%)
HSVhsv(285, 83%, 60%)
CMYKcmyk(21.4%, 83.1%, 0%, 39.6%)
CIE-LABlab(32.12, 57.20, -48.89)
CIE-LCHlch(32.12, 75.25, 319.47°)
OKLaboklab(44.07% 0.1383 -0.1382)
OKLCHoklch(44.07% 0.196 315)
XYZxyz(14.0863, 7.1374, 31.2012)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791A9A #3B9A1A
analogous
#391A9A #791A9A #9A1A7B
triadic
#791A9A #9A791A #1A9A79
tetradic
#791A9A #9A391A #3B9A1A #1A7B9A
square
#791A9A #9A391A #3B9A1A #1A7B9A
split-complementary
#791A9A #7B9A1A #1A9A39
monochromatic
#270831 #501166 #791A9A #A223CE #BB4DE1

Accessibility & contrast

On white

8.65
#791A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#791A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791A9A
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791A9A#FFFFFF#000000##FFFFFF
##791A9A1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#114E97
Tritanopia (blue-blind)
#763A5C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #791a9a;
/* rgb */ color: rgb(121, 26, 154);
/* oklch */ color: oklch(44.1% 0.196 315.0);
Tailwind
colors: {
  custom: {
    50: '#a464b9',
    500: '#791a9a',
    950: '#000000',
  },
}
SCSS
$custom: #791a9a;
$custom-light: #a464b9;
$custom-dark: #000000;
JSON
{
  "hex": "#791a9a",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 154
  },
  "hsl": {
    "h": 284.531,
    "s": 71.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44067,
    "c": 0.19552,
    "h": 315
  },
  "luminance": 0.07137
}

Semantic roles & 50–950 ramp

primary
#791A9A
secondary
#6BC34D
accent
#EE3A68
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #791A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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