#791F9B#791F9B

#791F9B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.192 H 314.4°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#791F9B
RGBrgb(121, 31, 155)
HSLhsl(284, 67%, 36%)
HSVhsv(284, 80%, 61%)
CMYKcmyk(21.9%, 80%, 0%, 39.2%)
CIE-LABlab(32.73, 55.84, -48.52)
CIE-LCHlch(32.73, 73.97, 319.01°)
OKLaboklab(44.52% 0.1343 -0.1371)
OKLCHoklch(44.52% 0.192 314.4)
XYZxyz(14.2905, 7.4120, 31.6819)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791F9B #419B1F
analogous
#3B1F9B #791F9B #9B1F7F
triadic
#791F9B #9B791F #1F9B79
tetradic
#791F9B #9B3B1F #419B1F #1F7F9B
square
#791F9B #9B3B1F #419B1F #1F7F9B
split-complementary
#791F9B #7F9B1F #1F9B3B
monochromatic
#290B35 #511568 #791F9B #A129CE #B957DD

Accessibility & contrast

On white

8.46
#791F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#791F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791F9B
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791F9B#FFFFFF#000000##FFFFFF
##791F9B1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#154F98
Tritanopia (blue-blind)
#763D5D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #791f9b;
/* rgb */ color: rgb(121, 31, 155);
/* oklch */ color: oklch(44.5% 0.192 314.4);
Tailwind
colors: {
  custom: {
    50: '#a466b9',
    500: '#791f9b',
    950: '#000000',
  },
}
SCSS
$custom: #791f9b;
$custom-light: #a466b9;
$custom-dark: #000000;
JSON
{
  "hex": "#791f9b",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 283.548,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44518,
    "c": 0.19188,
    "h": 314.4
  },
  "luminance": 0.07411
}

Semantic roles & 50–950 ramp

primary
#791F9B
secondary
#72C155
accent
#EA3E6D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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