#791F9E#791F9E

#791F9E is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.195 H 313.4°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#791F9E
RGBrgb(121, 31, 158)
HSLhsl(283, 67%, 37%)
HSVhsv(283, 80%, 62%)
CMYKcmyk(23.4%, 80.4%, 0%, 38%)
CIE-LABlab(32.95, 56.46, -49.98)
CIE-LCHlch(32.95, 75.40, 318.48°)
OKLaboklab(44.74% 0.1337 -0.1414)
OKLCHoklch(44.74% 0.195 313.4)
XYZxyz(14.5456, 7.5140, 33.0253)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F9E #449E1F
analogous
#3A1F9E #791F9E #9E1F84
triadic
#791F9E #9E791F #1F9E79
tetradic
#791F9E #9E3A1F #449E1F #1F849E
square
#791F9E #9E3A1F #449E1F #1F849E
split-complementary
#791F9E #849E1F #1F9E3A
monochromatic
#2B0B38 #52156B #791F9E #A029D1 #B859DE

Accessibility & contrast

On white

8.39
#791F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#791F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F9E
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F9E#FFFFFF#000000##FFFFFF
##791F9E1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#0D4F9B
Tritanopia (blue-blind)
#753E5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #791f9e;
/* rgb */ color: rgb(121, 31, 158);
/* oklch */ color: oklch(44.7% 0.195 313.4);
Tailwind
colors: {
  custom: {
    50: '#a466bb',
    500: '#791f9e',
    950: '#000000',
  },
}
SCSS
$custom: #791f9e;
$custom-light: #a466bb;
$custom-dark: #000000;
JSON
{
  "hex": "#791f9e",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 282.52,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44744,
    "c": 0.19457,
    "h": 313.4
  },
  "luminance": 0.07514
}

Semantic roles & 50–950 ramp

primary
#791F9E
secondary
#76C256
accent
#EA3E70
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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