#791EA1#791EA1

#791EA1 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.198 H 312.5°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#791EA1
RGBrgb(121, 30, 161)
HSLhsl(282, 69%, 37%)
HSVhsv(282, 81%, 63%)
CMYKcmyk(24.8%, 81.4%, 0%, 36.9%)
CIE-LABlab(33.06, 57.40, -51.61)
CIE-LCHlch(33.06, 77.19, 318.04°)
OKLaboklab(44.9% 0.1338 -0.1462)
OKLCHoklch(44.9% 0.198 312.5)
XYZxyz(14.7813, 7.5671, 34.3933)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791EA1 #46A11E
analogous
#371EA1 #791EA1 #A11E88
triadic
#791EA1 #A1791E #1EA179
tetradic
#791EA1 #A1371E #46A11E #1E88A1
square
#791EA1 #A1371E #46A11E #1E88A1
split-complementary
#791EA1 #88A11E #1EA137
monochromatic
#2B0B3A #52146D #791EA1 #A028D5 #B759E0

Accessibility & contrast

On white

8.36
#791EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#791EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791EA1
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791EA1#FFFFFF#000000##FFFFFF
##791EA11.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#014F9E
Tritanopia (blue-blind)
#743F60
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #791ea1;
/* rgb */ color: rgb(121, 30, 161);
/* oklch */ color: oklch(44.9% 0.198 312.5);
Tailwind
colors: {
  custom: {
    50: '#a466be',
    500: '#791ea1',
    950: '#000000',
  },
}
SCSS
$custom: #791ea1;
$custom-light: #a466be;
$custom-dark: #000000;
JSON
{
  "hex": "#791ea1",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 281.679,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44896,
    "c": 0.19818,
    "h": 312.5
  },
  "luminance": 0.07567
}

Semantic roles & 50–950 ramp

primary
#791EA1
secondary
#78C457
accent
#EB3C72
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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