#791BA1#791BA1

#791BA1 is a dark, highly saturated purple. Relative luminance 0.074; OKLCH L 44.7% C 0.201 H 312.6°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#791BA1
RGBrgb(121, 27, 161)
HSLhsl(282, 71%, 37%)
HSVhsv(282, 83%, 63%)
CMYKcmyk(24.8%, 83.2%, 0%, 36.9%)
CIE-LABlab(32.75, 58.31, -52.12)
CIE-LCHlch(32.75, 78.21, 318.21°)
OKLaboklab(44.68% 0.136 -0.1477)
OKLCHoklch(44.68% 0.201 312.6)
XYZxyz(14.7089, 7.4225, 34.3692)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791BA1 #43A11B
analogous
#361BA1 #791BA1 #A11B86
triadic
#791BA1 #A1791B #1BA179
tetradic
#791BA1 #A1361B #43A11B #1B86A1
square
#791BA1 #A1361B #43A11B #1B86A1
split-complementary
#791BA1 #86A11B #1BA136
monochromatic
#2A0938 #52126D #791BA1 #A024D5 #B854E2

Accessibility & contrast

On white

8.45
#791BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791BA1
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791BA1#FFFFFF#000000##FFFFFF
##791BA11.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.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: #791ba1;
/* rgb */ color: rgb(121, 27, 161);
/* oklch */ color: oklch(44.7% 0.201 312.6);
Tailwind
colors: {
  custom: {
    50: '#a565be',
    500: '#791ba1',
    950: '#000000',
  },
}
SCSS
$custom: #791ba1;
$custom-light: #a565be;
$custom-dark: #000000;
JSON
{
  "hex": "#791ba1",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 282.09,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44676,
    "c": 0.20076,
    "h": 312.6
  },
  "luminance": 0.07422
}

Semantic roles & 50–950 ramp

primary
#791BA1
secondary
#75C552
accent
#EE3A70
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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