#791FA1#791FA1

#791FA1 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 45.0% C 0.197 H 312.4°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#791FA1
RGBrgb(121, 31, 161)
HSLhsl(282, 68%, 38%)
HSVhsv(282, 81%, 63%)
CMYKcmyk(24.8%, 80.7%, 0%, 36.9%)
CIE-LABlab(33.18, 57.07, -51.43)
CIE-LCHlch(33.18, 76.83, 317.98°)
OKLaboklab(44.97% 0.133 -0.1457)
OKLCHoklch(44.97% 0.197 312.4)
XYZxyz(14.8070, 7.6186, 34.4018)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791FA1 #47A11F
analogous
#381FA1 #791FA1 #A11F88
triadic
#791FA1 #A1791F #1FA179
tetradic
#791FA1 #A1381F #47A11F #1F88A1
square
#791FA1 #A1381F #47A11F #1F88A1
split-complementary
#791FA1 #88A11F #1FA138
monochromatic
#2C0B3A #52156E #791FA1 #A029D4 #B75BDF

Accessibility & contrast

On white

8.32
#791FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#791FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791FA1
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791FA1#FFFFFF#000000##FFFFFF
##791FA11.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#03509E
Tritanopia (blue-blind)
#743F61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #791fa1;
/* rgb */ color: rgb(121, 31, 161);
/* oklch */ color: oklch(45.0% 0.197 312.4);
Tailwind
colors: {
  custom: {
    50: '#a467be',
    500: '#791fa1',
    950: '#000000',
  },
}
SCSS
$custom: #791fa1;
$custom-light: #a467be;
$custom-dark: #000000;
JSON
{
  "hex": "#791fa1",
  "rgb": {
    "r": 121,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 281.538,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44974,
    "c": 0.19727,
    "h": 312.4
  },
  "luminance": 0.07618
}

Semantic roles & 50–950 ramp

primary
#791FA1
secondary
#79C458
accent
#EB3D73
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #791FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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