#791E7D#791E7D

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

Color values

HEX#791E7D
RGBrgb(121, 30, 125)
HSLhsl(297, 61%, 30%)
HSVhsv(297, 76%, 49%)
CMYKcmyk(3.2%, 76%, 0%, 51%)
CIE-LABlab(30.58, 50.41, -33.40)
CIE-LCHlch(30.58, 60.47, 326.47°)
OKLaboklab(42.35% 0.1386 -0.0928)
OKLCHoklch(42.35% 0.167 326.2)
XYZxyz(12.0509, 6.4750, 20.0131)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791E7D #227D1E
analogous
#4A1E7D #791E7D #7D1E51
triadic
#791E7D #7D791E #1E7D79
tetradic
#791E7D #7D4A1E #227D1E #1E517D
square
#791E7D #7D4A1E #227D1E #1E517D
split-complementary
#791E7D #517D1E #1E7D4A
monochromatic
#19061A #49124C #791E7D #A92AAE #CC43D2

Accessibility & contrast

On white

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

On black

2.29
#791E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##791E7D#FFFFFF#000000##FFFFFF
##791E7D1.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034180
Deuteranopia (green-blind)
#344C7B
Tritanopia (blue-blind)
#7C2E4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791e7d;
/* rgb */ color: rgb(121, 30, 125);
/* oklch */ color: oklch(42.4% 0.167 326.2);
Tailwind
colors: {
  custom: {
    50: '#a364a3',
    500: '#791e7d',
    950: '#000000',
  },
}
SCSS
$custom: #791e7d;
$custom-light: #a364a3;
$custom-dark: #000000;
JSON
{
  "hex": "#791e7d",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 297.474,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42352,
    "c": 0.16681,
    "h": 326.2
  },
  "luminance": 0.06474
}

Semantic roles & 50–950 ramp

primary
#791E7D
secondary
#4BB046
accent
#E4434A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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