#791B7F#791B7F

#791B7F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.172 H 325.4°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#791B7F
RGBrgb(121, 27, 127)
HSLhsl(296, 65%, 30%)
HSVhsv(296, 79%, 50%)
CMYKcmyk(4.7%, 78.7%, 0%, 50.2%)
CIE-LABlab(30.36, 51.77, -35.02)
CIE-LCHlch(30.36, 62.50, 325.92°)
OKLaboklab(42.23% 0.1413 -0.0975)
OKLCHoklch(42.23% 0.172 325.4)
XYZxyz(12.1076, 6.3819, 20.6687)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B7F #217F1B
analogous
#471B7F #791B7F #7F1B53
triadic
#791B7F #7F791B #1B7F79
tetradic
#791B7F #7F471B #217F1B #1B537F
square
#791B7F #7F471B #217F1B #1B537F
split-complementary
#791B7F #537F1B #1B7F47
monochromatic
#19061A #49104D #791B7F #A926B1 #CD3ED6

Accessibility & contrast

On white

9.23
#791B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791B7F
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B7F#FFFFFF#000000##FFFFFF
##791B7F1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#314B7D
Tritanopia (blue-blind)
#7C2D4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #791b7f;
/* rgb */ color: rgb(121, 27, 127);
/* oklch */ color: oklch(42.2% 0.172 325.4);
Tailwind
colors: {
  custom: {
    50: '#a363a4',
    500: '#791b7f',
    950: '#000000',
  },
}
SCSS
$custom: #791b7f;
$custom-light: #a363a4;
$custom-dark: #000000;
JSON
{
  "hex": "#791b7f",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 296.4,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42232,
    "c": 0.17168,
    "h": 325.4
  },
  "luminance": 0.06381
}

Semantic roles & 50–950 ramp

primary
#791B7F
secondary
#4AB343
accent
#E8404A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #791B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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