#791BA0#791BA0

#791BA0 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.200 H 313.0°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#791BA0
RGBrgb(121, 27, 160)
HSLhsl(282, 71%, 37%)
HSVhsv(282, 83%, 63%)
CMYKcmyk(24.4%, 83.1%, 0%, 37.3%)
CIE-LABlab(32.67, 58.11, -51.64)
CIE-LCHlch(32.67, 77.74, 318.37°)
OKLaboklab(44.6% 0.1363 -0.1463)
OKLCHoklch(44.6% 0.2 313)
XYZxyz(14.6211, 7.3873, 33.9066)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791BA0 #42A01B
analogous
#371BA0 #791BA0 #A01B85
triadic
#791BA0 #A0791B #1BA079
tetradic
#791BA0 #A0371B #42A01B #1B85A0
square
#791BA0 #A0371B #42A01B #1B85A0
split-complementary
#791BA0 #85A01B #1BA037
monochromatic
#2A0937 #51126C #791BA0 #A124D4 #B853E2

Accessibility & contrast

On white

8.48
#791BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #791BA0
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791BA0#FFFFFF#000000##FFFFFF
##791BA01.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A3
Deuteranopia (green-blind)
#004F9D
Tritanopia (blue-blind)
#753D5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #791ba0;
/* rgb */ color: rgb(121, 27, 160);
/* oklch */ color: oklch(44.6% 0.200 313.0);
Tailwind
colors: {
  custom: {
    50: '#a465bd',
    500: '#791ba0',
    950: '#000000',
  },
}
SCSS
$custom: #791ba0;
$custom-light: #a465bd;
$custom-dark: #000000;
JSON
{
  "hex": "#791ba0",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 160
  },
  "hsl": {
    "h": 282.406,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44598,
    "c": 0.19989,
    "h": 313
  },
  "luminance": 0.07387
}

Semantic roles & 50–950 ramp

primary
#791BA0
secondary
#74C552
accent
#EE3A6F
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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