#791A82#791A82

#791A82 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.175 H 324.1°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#791A82
RGBrgb(121, 26, 130)
HSLhsl(295, 67%, 31%)
HSVhsv(295, 80%, 51%)
CMYKcmyk(6.9%, 80%, 0%, 49%)
CIE-LABlab(30.44, 52.62, -36.77)
CIE-LCHlch(30.44, 64.20, 325.06°)
OKLaboklab(42.35% 0.1419 -0.1026)
OKLCHoklch(42.35% 0.175 324.1)
XYZxyz(12.2835, 6.4162, 21.7062)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791A82 #23821A
analogous
#451A82 #791A82 #821A57
triadic
#791A82 #82791A #1A8279
tetradic
#791A82 #82451A #23821A #1A5782
square
#791A82 #82451A #23821A #1A5782
split-complementary
#791A82 #57821A #1A8245
monochromatic
#1A061C #4A104F #791A82 #A824B5 #CB3ED8

Accessibility & contrast

On white

9.20
#791A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#791A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791A82
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791A82#FFFFFF#000000##FFFFFF
##791A821.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#2F4B80
Tritanopia (blue-blind)
#7B2E4E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791a82;
/* rgb */ color: rgb(121, 26, 130);
/* oklch */ color: oklch(42.4% 0.175 324.1);
Tailwind
colors: {
  custom: {
    50: '#a363a7',
    500: '#791a82',
    950: '#000000',
  },
}
SCSS
$custom: #791a82;
$custom-light: #a363a7;
$custom-dark: #000000;
JSON
{
  "hex": "#791a82",
  "rgb": {
    "r": 121,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 294.808,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42352,
    "c": 0.17515,
    "h": 324.1
  },
  "luminance": 0.06415
}

Semantic roles & 50–950 ramp

primary
#791A82
secondary
#4CB642
accent
#EA3E4D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791A82

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

Preview Lab → · Contrast checker → · Palette generator →

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