#791B87#791B87

#791B87 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.178 H 322.0°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#791B87
RGBrgb(121, 27, 135)
HSLhsl(292, 67%, 32%)
HSVhsv(292, 80%, 53%)
CMYKcmyk(10.4%, 80%, 0%, 47.1%)
CIE-LABlab(30.88, 53.23, -39.19)
CIE-LCHlch(30.88, 66.10, 323.64°)
OKLaboklab(42.77% 0.1406 -0.1097)
OKLCHoklch(42.77% 0.178 322)
XYZxyz(12.6498, 6.5988, 23.5244)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B87 #29871B
analogous
#431B87 #791B87 #871B5F
triadic
#791B87 #87791B #1B8779
tetradic
#791B87 #87431B #29871B #1B5F87
square
#791B87 #87431B #29871B #1B5F87
split-complementary
#791B87 #5F871B #1B8743
monochromatic
#1E0721 #4B1154 #791B87 #A725BA #C643D9

Accessibility & contrast

On white

9.05
#791B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#791B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B87
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B87#FFFFFF#000000##FFFFFF
##791B871.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#2B4C85
Tritanopia (blue-blind)
#7A3151
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #791b87;
/* rgb */ color: rgb(121, 27, 135);
/* oklch */ color: oklch(42.8% 0.178 322.0);
Tailwind
colors: {
  custom: {
    50: '#a364aa',
    500: '#791b87',
    950: '#000000',
  },
}
SCSS
$custom: #791b87;
$custom-light: #a364aa;
$custom-dark: #000000;
JSON
{
  "hex": "#791b87",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 292.222,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42767,
    "c": 0.17836,
    "h": 322
  },
  "luminance": 0.06598
}

Semantic roles & 50–950 ramp

primary
#791B87
secondary
#53BA44
accent
#EA3E54
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791B87

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

Preview Lab → · Contrast checker → · Palette generator →

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