#791D98#791D98

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

Color values

HEX#791D98
RGBrgb(121, 29, 152)
HSLhsl(285, 68%, 35%)
HSVhsv(285, 81%, 60%)
CMYKcmyk(20.4%, 80.9%, 0%, 40.4%)
CIE-LABlab(32.28, 55.89, -47.41)
CIE-LCHlch(32.28, 73.28, 319.69°)
OKLaboklab(44.14% 0.1364 -0.1338)
OKLCHoklch(44.14% 0.191 315.6)
XYZxyz(13.9911, 7.2112, 30.3546)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791D98 #3C981D
analogous
#3B1D98 #791D98 #981D79
triadic
#791D98 #98791D #1D9879
tetradic
#791D98 #983B1D #3C981D #1D7998
square
#791D98 #983B1D #3C981D #1D7998
split-complementary
#791D98 #79981D #1D983B
monochromatic
#270931 #501365 #791D98 #A227CB #BB52DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##791D98#FFFFFF#000000##FFFFFF
##791D981.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)
#00479B
Deuteranopia (green-blind)
#184E95
Tritanopia (blue-blind)
#773A5B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #791d98;
/* rgb */ color: rgb(121, 29, 152);
/* oklch */ color: oklch(44.1% 0.191 315.6);
Tailwind
colors: {
  custom: {
    50: '#a465b7',
    500: '#791d98',
    950: '#000000',
  },
}
SCSS
$custom: #791d98;
$custom-light: #a465b7;
$custom-dark: #000000;
JSON
{
  "hex": "#791d98",
  "rgb": {
    "r": 121,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 284.878,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44136,
    "c": 0.19111,
    "h": 315.6
  },
  "luminance": 0.07211
}

Semantic roles & 50–950 ramp

primary
#791D98
secondary
#6CC150
accent
#EB3D69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #791D98

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

Preview Lab → · Contrast checker → · Palette generator →

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