#791F82#791F82

#791F82 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.170 H 324.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#791F82
RGBrgb(121, 31, 130)
HSLhsl(295, 61%, 32%)
HSVhsv(295, 76%, 51%)
CMYKcmyk(6.9%, 76.2%, 0%, 49%)
CIE-LABlab(31.01, 50.97, -35.85)
CIE-LCHlch(31.01, 62.32, 324.88°)
OKLaboklab(42.76% 0.1374 -0.1)
OKLCHoklch(42.76% 0.17 324)
XYZxyz(12.4041, 6.6574, 21.7464)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F82 #28821F
analogous
#481F82 #791F82 #821F5A
triadic
#791F82 #82791F #1F8279
tetradic
#791F82 #82481F #28821F #1F5A82
square
#791F82 #82481F #28821F #1F5A82
split-complementary
#791F82 #5A821F #1F8248
monochromatic
#1D071F #4B1351 #791F82 #A72BB3 #C748D3

Accessibility & contrast

On white

9.01
#791F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#791F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F82
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F82#FFFFFF#000000##FFFFFF
##791F821.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#314D80
Tritanopia (blue-blind)
#7B314F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #791f82;
/* rgb */ color: rgb(121, 31, 130);
/* oklch */ color: oklch(42.8% 0.170 324.0);
Tailwind
colors: {
  custom: {
    50: '#a365a7',
    500: '#791f82',
    950: '#000000',
  },
}
SCSS
$custom: #791f82;
$custom-light: #a365a7;
$custom-dark: #000000;
JSON
{
  "hex": "#791f82",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 294.545,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42761,
    "c": 0.16993,
    "h": 324
  },
  "luminance": 0.06657
}

Semantic roles & 50–950 ramp

primary
#791F82
secondary
#52B548
accent
#E54352
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791F82

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

Preview Lab → · Contrast checker → · Palette generator →

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