#791F81#791F81

#791F81 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.169 H 324.4°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#791F81
RGBrgb(121, 31, 129)
HSLhsl(295, 61%, 31%)
HSVhsv(295, 76%, 51%)
CMYKcmyk(6.2%, 76%, 0%, 49.4%)
CIE-LABlab(30.95, 50.79, -35.32)
CIE-LCHlch(30.95, 61.86, 325.18°)
OKLaboklab(42.7% 0.1375 -0.0984)
OKLCHoklch(42.7% 0.169 324.4)
XYZxyz(12.3373, 6.6307, 21.3947)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F81 #27811F
analogous
#481F81 #791F81 #811F58
triadic
#791F81 #81791F #1F8179
tetradic
#791F81 #81481F #27811F #1F5881
square
#791F81 #81481F #27811F #1F5881
split-complementary
#791F81 #58811F #1F8148
monochromatic
#1C071E #4B1350 #791F81 #A72BB2 #C847D3

Accessibility & contrast

On white

9.03
#791F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791F81
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F81#FFFFFF#000000##FFFFFF
##791F811.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#324C7F
Tritanopia (blue-blind)
#7B314E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #791f81;
/* rgb */ color: rgb(121, 31, 129);
/* oklch */ color: oklch(42.7% 0.169 324.4);
Tailwind
colors: {
  custom: {
    50: '#a365a6',
    500: '#791f81',
    950: '#000000',
  },
}
SCSS
$custom: #791f81;
$custom-light: #a365a6;
$custom-dark: #000000;
JSON
{
  "hex": "#791f81",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 295.102,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42696,
    "c": 0.16907,
    "h": 324.4
  },
  "luminance": 0.0663
}

Semantic roles & 50–950 ramp

primary
#791F81
secondary
#51B448
accent
#E44351
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791F81

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

Preview Lab → · Contrast checker → · Palette generator →

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