#791F7D#791F7D

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

Color values

HEX#791F7D
RGBrgb(121, 31, 125)
HSLhsl(297, 60%, 31%)
HSVhsv(297, 75%, 49%)
CMYKcmyk(3.2%, 75.2%, 0%, 51%)
CIE-LABlab(30.70, 50.06, -33.21)
CIE-LCHlch(30.70, 60.07, 326.44°)
OKLaboklab(42.44% 0.1376 -0.0923)
OKLCHoklch(42.44% 0.166 326.2)
XYZxyz(12.0766, 6.5264, 20.0217)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F7D #237D1F
analogous
#4A1F7D #791F7D #7D1F52
triadic
#791F7D #7D791F #1F7D79
tetradic
#791F7D #7D4A1F #237D1F #1F527D
square
#791F7D #7D4A1F #237D1F #1F527D
split-complementary
#791F7D #527D1F #1F7D4A
monochromatic
#1A071B #4A134C #791F7D #A82BAE #CB45D1

Accessibility & contrast

On white

9.11
#791F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#791F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F7D
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F7D#FFFFFF#000000##FFFFFF
##791F7D1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054180
Deuteranopia (green-blind)
#354C7B
Tritanopia (blue-blind)
#7C2F4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #791f7d;
/* rgb */ color: rgb(121, 31, 125);
/* oklch */ color: oklch(42.4% 0.166 326.2);
Tailwind
colors: {
  custom: {
    50: '#a365a3',
    500: '#791f7d',
    950: '#000000',
  },
}
SCSS
$custom: #791f7d;
$custom-light: #a365a3;
$custom-dark: #000000;
JSON
{
  "hex": "#791f7d",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 297.447,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.4244,
    "c": 0.16569,
    "h": 326.2
  },
  "luminance": 0.06526
}

Semantic roles & 50–950 ramp

primary
#791F7D
secondary
#4CB048
accent
#E3444B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #791F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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