#791F7B#791F7B

#791F7B is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.164 H 327.1°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#791F7B
RGBrgb(121, 31, 123)
HSLhsl(299, 60%, 30%)
HSVhsv(299, 75%, 48%)
CMYKcmyk(1.6%, 74.8%, 0%, 51.8%)
CIE-LABlab(30.58, 49.70, -32.14)
CIE-LCHlch(30.58, 59.19, 327.11°)
OKLaboklab(42.31% 0.1376 -0.0892)
OKLCHoklch(42.31% 0.164 327.1)
XYZxyz(11.9501, 6.4758, 19.3556)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F7B #217B1F
analogous
#4B1F7B #791F7B #7B1F4F
triadic
#791F7B #7B791F #1F7B79
tetradic
#791F7B #7B4B1F #217B1F #1F4F7B
square
#791F7B #7B4B1F #217B1F #1F4F7B
split-complementary
#791F7B #4F7B1F #1F7B4B
monochromatic
#190619 #49134A #791F7B #A92BAC #CD44D0

Accessibility & contrast

On white

9.15
#791F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791F7B
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F7B#FFFFFF#000000##FFFFFF
##791F7B1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A417E
Deuteranopia (green-blind)
#364C79
Tritanopia (blue-blind)
#7D2E4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791f7b;
/* rgb */ color: rgb(121, 31, 123);
/* oklch */ color: oklch(42.3% 0.164 327.1);
Tailwind
colors: {
  custom: {
    50: '#a365a1',
    500: '#791f7b',
    950: '#000000',
  },
}
SCSS
$custom: #791f7b;
$custom-light: #a365a1;
$custom-dark: #000000;
JSON
{
  "hex": "#791f7b",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 298.696,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42314,
    "c": 0.164,
    "h": 327.1
  },
  "luminance": 0.06475
}

Semantic roles & 50–950 ramp

primary
#791F7B
secondary
#4AAE48
accent
#E34548
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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