#791A9F#791A9F

#791A9F is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.5% C 0.200 H 313.4°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#791A9F
RGBrgb(121, 26, 159)
HSLhsl(283, 72%, 36%)
HSVhsv(283, 84%, 62%)
CMYKcmyk(23.9%, 83.6%, 0%, 37.6%)
CIE-LABlab(32.50, 58.20, -51.32)
CIE-LCHlch(32.50, 77.59, 318.59°)
OKLaboklab(44.45% 0.1372 -0.1453)
OKLCHoklch(44.45% 0.2 313.4)
XYZxyz(14.5114, 7.3074, 33.4402)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791A9F #409F1A
analogous
#371A9F #791A9F #9F1A83
triadic
#791A9F #9F791A #1A9F79
tetradic
#791A9F #9F371A #409F1A #1A839F
square
#791A9F #9F371A #409F1A #1A839F
split-complementary
#791A9F #839F1A #1A9F37
monochromatic
#290936 #51116A #791A9F #A123D4 #B951E3

Accessibility & contrast

On white

8.53
#791A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#791A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791A9F
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791A9F#FFFFFF#000000##FFFFFF
##791A9F1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#004E9C
Tritanopia (blue-blind)
#753C5F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #791a9f;
/* rgb */ color: rgb(121, 26, 159);
/* oklch */ color: oklch(44.5% 0.200 313.4);
Tailwind
colors: {
  custom: {
    50: '#a465bc',
    500: '#791a9f',
    950: '#000000',
  },
}
SCSS
$custom: #791a9f;
$custom-light: #a465bc;
$custom-dark: #000000;
JSON
{
  "hex": "#791a9f",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 282.857,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44451,
    "c": 0.19984,
    "h": 313.4
  },
  "luminance": 0.07307
}

Semantic roles & 50–950 ramp

primary
#791A9F
secondary
#71C550
accent
#EF396D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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