#791B9B#791B9B

#791B9B is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.2% C 0.196 H 314.6°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#791B9B
RGBrgb(121, 27, 155)
HSLhsl(284, 70%, 36%)
HSVhsv(284, 83%, 61%)
CMYKcmyk(21.9%, 82.6%, 0%, 39.2%)
CIE-LABlab(32.29, 57.10, -49.22)
CIE-LCHlch(32.29, 75.39, 319.24°)
OKLaboklab(44.21% 0.1374 -0.1391)
OKLCHoklch(44.21% 0.196 314.6)
XYZxyz(14.1925, 7.2159, 31.6492)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B9B #3D9B1B
analogous
#391B9B #791B9B #9B1B7D
triadic
#791B9B #9B791B #1B9B79
tetradic
#791B9B #9B391B #3D9B1B #1B7D9B
square
#791B9B #9B391B #3D9B1B #1B7D9B
split-complementary
#791B9B #7D9B1B #1B9B39
monochromatic
#280933 #501267 #791B9B #A224CF #BA50E0

Accessibility & contrast

On white

8.60
#791B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#791B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B9B
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B9B#FFFFFF#000000##FFFFFF
##791B9B1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#0F4E98
Tritanopia (blue-blind)
#763B5C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #791b9b;
/* rgb */ color: rgb(121, 27, 155);
/* oklch */ color: oklch(44.2% 0.196 314.6);
Tailwind
colors: {
  custom: {
    50: '#a465b9',
    500: '#791b9b',
    950: '#000000',
  },
}
SCSS
$custom: #791b9b;
$custom-light: #a465b9;
$custom-dark: #000000;
JSON
{
  "hex": "#791b9b",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 155
  },
  "hsl": {
    "h": 284.063,
    "s": 70.33,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44214,
    "c": 0.19553,
    "h": 314.6
  },
  "luminance": 0.07215
}

Semantic roles & 50–950 ramp

primary
#791B9B
secondary
#6EC34F
accent
#ED3B6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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