#791C82#791C82

#791C82 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.173 H 324.1°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#791C82
RGBrgb(121, 28, 130)
HSLhsl(295, 65%, 31%)
HSVhsv(295, 78%, 51%)
CMYKcmyk(6.9%, 78.5%, 0%, 49%)
CIE-LABlab(30.66, 51.99, -36.41)
CIE-LCHlch(30.66, 63.47, 324.99°)
OKLaboklab(42.51% 0.1402 -0.1016)
OKLCHoklch(42.51% 0.173 324.1)
XYZxyz(12.3293, 6.5079, 21.7215)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791C82 #25821C
analogous
#461C82 #791C82 #821C58
triadic
#791C82 #82791C #1C8279
tetradic
#791C82 #82461C #25821C #1C5882
square
#791C82 #82461C #25821C #1C5882
split-complementary
#791C82 #58821C #1C8246
monochromatic
#1B061D #4A1150 #791C82 #A827B4 #C942D6

Accessibility & contrast

On white

9.12
#791C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#791C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791C82
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791C82#FFFFFF#000000##FFFFFF
##791C821.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#304C80
Tritanopia (blue-blind)
#7B2F4E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791c82;
/* rgb */ color: rgb(121, 28, 130);
/* oklch */ color: oklch(42.5% 0.173 324.1);
Tailwind
colors: {
  custom: {
    50: '#a364a7',
    500: '#791c82',
    950: '#000000',
  },
}
SCSS
$custom: #791c82;
$custom-light: #a364a7;
$custom-dark: #000000;
JSON
{
  "hex": "#791c82",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 130
  },
  "hsl": {
    "h": 294.706,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42509,
    "c": 0.17315,
    "h": 324.1
  },
  "luminance": 0.06507
}

Semantic roles & 50–950 ramp

primary
#791C82
secondary
#4EB544
accent
#E8404F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791C82

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

Preview Lab → · Contrast checker → · Palette generator →

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