#791F9C#791F9C

#791F9C is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.193 H 314.1°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#791F9C
RGBrgb(121, 31, 156)
HSLhsl(283, 67%, 37%)
HSVhsv(283, 80%, 61%)
CMYKcmyk(22.4%, 80.1%, 0%, 38.8%)
CIE-LABlab(32.80, 56.05, -49.01)
CIE-LCHlch(32.80, 74.45, 318.83°)
OKLaboklab(44.59% 0.1341 -0.1385)
OKLCHoklch(44.59% 0.193 314.1)
XYZxyz(14.3749, 7.4457, 32.1260)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F9C #429C1F
analogous
#3B1F9C #791F9C #9C1F81
triadic
#791F9C #9C791F #1F9C79
tetradic
#791F9C #9C3B1F #429C1F #1F819C
square
#791F9C #9C3B1F #429C1F #1F819C
split-complementary
#791F9C #819C1F #1F9C3B
monochromatic
#2A0B36 #511569 #791F9C #A129CF #B858DE

Accessibility & contrast

On white

8.44
#791F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#791F9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F9C
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F9C#FFFFFF#000000##FFFFFF
##791F9C1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#124F99
Tritanopia (blue-blind)
#763D5E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #791f9c;
/* rgb */ color: rgb(121, 31, 156);
/* oklch */ color: oklch(44.6% 0.193 314.1);
Tailwind
colors: {
  custom: {
    50: '#a466ba',
    500: '#791f9c',
    950: '#000000',
  },
}
SCSS
$custom: #791f9c;
$custom-light: #a466ba;
$custom-dark: #000000;
JSON
{
  "hex": "#791f9c",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 283.2,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44593,
    "c": 0.19278,
    "h": 314.1
  },
  "luminance": 0.07445
}

Semantic roles & 50–950 ramp

primary
#791F9C
secondary
#74C155
accent
#EA3E6E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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