#791F7C#791F7C

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

Color values

HEX#791F7C
RGBrgb(121, 31, 124)
HSLhsl(298, 60%, 30%)
HSVhsv(298, 75%, 49%)
CMYKcmyk(2.4%, 75%, 0%, 51.4%)
CIE-LABlab(30.64, 49.88, -32.67)
CIE-LCHlch(30.64, 59.63, 326.77°)
OKLaboklab(42.38% 0.1376 -0.0907)
OKLCHoklch(42.38% 0.165 326.6)
XYZxyz(12.0130, 6.5010, 19.6870)
Luminance0.0650 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F7C #227C1F
analogous
#4B1F7C #791F7C #7C1F50
triadic
#791F7C #7C791F #1F7C79
tetradic
#791F7C #7C4B1F #227C1F #1F507C
square
#791F7C #7C4B1F #227C1F #1F507C
split-complementary
#791F7C #507C1F #1F7C4B
monochromatic
#19071A #49134B #791F7C #A92BAD #CC45D0

Accessibility & contrast

On white

9.13
#791F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791F7C
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F7C#FFFFFF#000000##FFFFFF
##791F7C1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07417F
Deuteranopia (green-blind)
#354C7A
Tritanopia (blue-blind)
#7C2E4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791f7c;
/* rgb */ color: rgb(121, 31, 124);
/* oklch */ color: oklch(42.4% 0.165 326.6);
Tailwind
colors: {
  custom: {
    50: '#a365a2',
    500: '#791f7c',
    950: '#000000',
  },
}
SCSS
$custom: #791f7c;
$custom-light: #a365a2;
$custom-dark: #000000;
JSON
{
  "hex": "#791f7c",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 298.065,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42377,
    "c": 0.16485,
    "h": 326.6
  },
  "luminance": 0.065
}

Semantic roles & 50–950 ramp

primary
#791F7C
secondary
#4BAF48
accent
#E3454A
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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