#791CA1#791CA1

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

Color values

HEX#791CA1
RGBrgb(121, 28, 161)
HSLhsl(282, 70%, 37%)
HSVhsv(282, 83%, 63%)
CMYKcmyk(24.8%, 82.6%, 0%, 36.9%)
CIE-LABlab(32.85, 58.02, -51.96)
CIE-LCHlch(32.85, 77.88, 318.15°)
OKLaboklab(44.75% 0.1353 -0.1472)
OKLCHoklch(44.75% 0.2 312.6)
XYZxyz(14.7323, 7.4691, 34.3769)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791CA1 #44A11C
analogous
#371CA1 #791CA1 #A11C87
triadic
#791CA1 #A1791C #1CA179
tetradic
#791CA1 #A1371C #44A11C #1C87A1
square
#791CA1 #A1371C #44A11C #1C87A1
split-complementary
#791CA1 #87A11C #1CA137
monochromatic
#2B0A39 #52136D #791CA1 #A025D5 #B856E2

Accessibility & contrast

On white

8.42
#791CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791CA1
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791CA1#FFFFFF#000000##FFFFFF
##791CA11.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#004F9E
Tritanopia (blue-blind)
#743E60
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #791ca1;
/* rgb */ color: rgb(121, 28, 161);
/* oklch */ color: oklch(44.7% 0.200 312.6);
Tailwind
colors: {
  custom: {
    50: '#a565be',
    500: '#791ca1',
    950: '#000000',
  },
}
SCSS
$custom: #791ca1;
$custom-light: #a565be;
$custom-dark: #000000;
JSON
{
  "hex": "#791ca1",
  "rgb": {
    "r": 121,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 281.955,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44747,
    "c": 0.19993,
    "h": 312.6
  },
  "luminance": 0.07469
}

Semantic roles & 50–950 ramp

primary
#791CA1
secondary
#76C554
accent
#ED3B70
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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