#791D9B#791D9B

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

Color values

HEX#791D9B
RGBrgb(121, 29, 155)
HSLhsl(284, 68%, 36%)
HSVhsv(284, 81%, 61%)
CMYKcmyk(21.9%, 81.3%, 0%, 39.2%)
CIE-LABlab(32.50, 56.49, -48.88)
CIE-LCHlch(32.50, 74.70, 319.13°)
OKLaboklab(44.36% 0.1359 -0.1381)
OKLCHoklch(44.36% 0.194 314.5)
XYZxyz(14.2399, 7.3108, 31.6650)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D9B #3F9B1D
analogous
#3A1D9B #791D9B #9B1D7E
triadic
#791D9B #9B791D #1D9B79
tetradic
#791D9B #9B3A1D #3F9B1D #1D7E9B
square
#791D9B #9B3A1D #3F9B1D #1D7E9B
split-complementary
#791D9B #7E9B1D #1D9B3A
monochromatic
#290A34 #511367 #791D9B #A127CF #B953DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##791D9B#FFFFFF#000000##FFFFFF
##791D9B1.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)
#00489E
Deuteranopia (green-blind)
#124F98
Tritanopia (blue-blind)
#763C5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #791d9b;
/* rgb */ color: rgb(121, 29, 155);
/* oklch */ color: oklch(44.4% 0.194 314.5);
Tailwind
colors: {
  custom: {
    50: '#a465b9',
    500: '#791d9b',
    950: '#000000',
  },
}
SCSS
$custom: #791d9b;
$custom-light: #a465b9;
$custom-dark: #000000;
JSON
{
  "hex": "#791d9b",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 155
  },
  "hsl": {
    "h": 283.81,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44361,
    "c": 0.19375,
    "h": 314.5
  },
  "luminance": 0.0731
}

Semantic roles & 50–950 ramp

primary
#791D9B
secondary
#70C252
accent
#EB3C6C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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