#791A98#791A98

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

Color values

HEX#791A98
RGBrgb(121, 26, 152)
HSLhsl(285, 71%, 35%)
HSVhsv(285, 83%, 60%)
CMYKcmyk(20.4%, 82.9%, 0%, 40.4%)
CIE-LABlab(31.97, 56.80, -47.91)
CIE-LCHlch(31.97, 74.31, 319.85°)
OKLaboklab(43.92% 0.1387 -0.1353)
OKLCHoklch(43.92% 0.194 315.7)
XYZxyz(13.9211, 7.0713, 30.3313)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791A98 #39981A
analogous
#3A1A98 #791A98 #981A78
triadic
#791A98 #98791A #1A9879
tetradic
#791A98 #983A1A #39981A #1A7898
square
#791A98 #983A1A #39981A #1A7898
split-complementary
#791A98 #78981A #1A983A
monochromatic
#26082F #4F1164 #791A98 #A323CC #BC4CE0

Accessibility & contrast

On white

8.70
#791A98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#791A98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791A98
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791A98#FFFFFF#000000##FFFFFF
##791A981.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #791a98;
/* rgb */ color: rgb(121, 26, 152);
/* oklch */ color: oklch(43.9% 0.194 315.7);
Tailwind
colors: {
  custom: {
    50: '#a464b7',
    500: '#791a98',
    950: '#000000',
  },
}
SCSS
$custom: #791a98;
$custom-light: #a464b7;
$custom-dark: #000000;
JSON
{
  "hex": "#791a98",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 152
  },
  "hsl": {
    "h": 285.238,
    "s": 70.787,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43916,
    "c": 0.19379,
    "h": 315.7
  },
  "luminance": 0.07071
}

Semantic roles & 50–950 ramp

primary
#791A98
secondary
#69C24B
accent
#EE3A66
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #791A98

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

Preview Lab → · Contrast checker → · Palette generator →

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