#791B9F#791B9F

#791B9F is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.199 H 313.3°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#791B9F
RGBrgb(121, 27, 159)
HSLhsl(283, 71%, 36%)
HSVhsv(283, 83%, 62%)
CMYKcmyk(23.9%, 83%, 0%, 37.6%)
CIE-LABlab(32.60, 57.91, -51.16)
CIE-LCHlch(32.60, 77.27, 318.54°)
OKLaboklab(44.52% 0.1365 -0.1448)
OKLCHoklch(44.52% 0.199 313.3)
XYZxyz(14.5340, 7.3525, 33.4477)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B9F #419F1B
analogous
#371B9F #791B9F #9F1B83
triadic
#791B9F #9F791B #1B9F79
tetradic
#791B9F #9F371B #419F1B #1B839F
square
#791B9F #9F371B #419F1B #1B839F
split-complementary
#791B9F #839F1B #1B9F37
monochromatic
#290936 #51126B #791B9F #A124D3 #B953E2

Accessibility & contrast

On white

8.50
#791B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#791B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B9F
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B9F#FFFFFF#000000##FFFFFF
##791B9F1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#024F9C
Tritanopia (blue-blind)
#753D5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #791b9f;
/* rgb */ color: rgb(121, 27, 159);
/* oklch */ color: oklch(44.5% 0.199 313.3);
Tailwind
colors: {
  custom: {
    50: '#a465bc',
    500: '#791b9f',
    950: '#000000',
  },
}
SCSS
$custom: #791b9f;
$custom-light: #a465bc;
$custom-dark: #000000;
JSON
{
  "hex": "#791b9f",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 282.727,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44521,
    "c": 0.19902,
    "h": 313.3
  },
  "luminance": 0.07352
}

Semantic roles & 50–950 ramp

primary
#791B9F
secondary
#72C551
accent
#EE3A6E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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