#791B94#791B94

#791B94 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.7% C 0.189 H 317.1°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#791B94
RGBrgb(121, 27, 148)
HSLhsl(287, 69%, 34%)
HSVhsv(287, 82%, 58%)
CMYKcmyk(18.2%, 81.8%, 0%, 42%)
CIE-LABlab(31.78, 55.72, -45.77)
CIE-LCHlch(31.78, 72.11, 320.60°)
OKLaboklab(43.69% 0.1388 -0.129)
OKLCHoklch(43.69% 0.189 317.1)
XYZxyz(13.6216, 6.9875, 28.6424)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B94 #36941B
analogous
#3D1B94 #791B94 #941B73
triadic
#791B94 #94791B #1B9479
tetradic
#791B94 #943D1B #36941B #1B7394
square
#791B94 #943D1B #36941B #1B7394
split-complementary
#791B94 #73941B #1B943D
monochromatic
#24082C #4F1260 #791B94 #A324C8 #BD4BDE

Accessibility & contrast

On white

8.76
#791B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#791B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B94
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B94#FFFFFF#000000##FFFFFF
##791B941.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004597
Deuteranopia (green-blind)
#1D4D91
Tritanopia (blue-blind)
#783858
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #791b94;
/* rgb */ color: rgb(121, 27, 148);
/* oklch */ color: oklch(43.7% 0.189 317.1);
Tailwind
colors: {
  custom: {
    50: '#a464b4',
    500: '#791b94',
    950: '#000000',
  },
}
SCSS
$custom: #791b94;
$custom-light: #a464b4;
$custom-dark: #000000;
JSON
{
  "hex": "#791b94",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 286.612,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4369,
    "c": 0.18946,
    "h": 317.1
  },
  "luminance": 0.06987
}

Semantic roles & 50–950 ramp

primary
#791B94
secondary
#65C04B
accent
#EC3C63
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #791B94

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

Preview Lab → · Contrast checker → · Palette generator →

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