#791B98#791B98

#791B98 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.0% C 0.193 H 315.7°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#791B98
RGBrgb(121, 27, 152)
HSLhsl(285, 70%, 35%)
HSVhsv(285, 82%, 60%)
CMYKcmyk(20.4%, 82.2%, 0%, 40.4%)
CIE-LABlab(32.07, 56.50, -47.75)
CIE-LCHlch(32.07, 73.98, 319.80°)
OKLaboklab(43.99% 0.138 -0.1348)
OKLCHoklch(43.99% 0.193 315.7)
XYZxyz(13.9437, 7.1164, 30.3388)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B98 #3A981B
analogous
#3B1B98 #791B98 #981B78
triadic
#791B98 #98791B #1B9879
tetradic
#791B98 #983B1B #3A981B #1B7898
square
#791B98 #983B1B #3A981B #1B7898
split-complementary
#791B98 #78981B #1B983B
monochromatic
#260930 #501264 #791B98 #A224CC #BB4EE0

Accessibility & contrast

On white

8.67
#791B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#791B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B98
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B98#FFFFFF#000000##FFFFFF
##791B981.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469B
Deuteranopia (green-blind)
#164E95
Tritanopia (blue-blind)
#77395B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #791b98;
/* rgb */ color: rgb(121, 27, 152);
/* oklch */ color: oklch(44.0% 0.193 315.7);
Tailwind
colors: {
  custom: {
    50: '#a465b7',
    500: '#791b98',
    950: '#000000',
  },
}
SCSS
$custom: #791b98;
$custom-light: #a465b7;
$custom-dark: #000000;
JSON
{
  "hex": "#791b98",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 285.12,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43987,
    "c": 0.19292,
    "h": 315.7
  },
  "luminance": 0.07116
}

Semantic roles & 50–950 ramp

primary
#791B98
secondary
#6AC24D
accent
#ED3B67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #791B98

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

Preview Lab → · Contrast checker → · Palette generator →

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