#791B8D#791B8D

#791B8D is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.183 H 319.7°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#791B8D
RGBrgb(121, 27, 141)
HSLhsl(289, 68%, 33%)
HSVhsv(289, 81%, 55%)
CMYKcmyk(14.2%, 80.9%, 0%, 44.7%)
CIE-LABlab(31.28, 54.36, -42.26)
CIE-LCHlch(31.28, 68.85, 322.14°)
OKLaboklab(43.19% 0.1399 -0.1187)
OKLCHoklch(43.19% 0.183 319.7)
XYZxyz(13.0842, 6.7726, 25.8122)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B8D #2F8D1B
analogous
#401B8D #791B8D #8D1B68
triadic
#791B8D #8D791B #1B8D79
tetradic
#791B8D #8D401B #2F8D1B #1B688D
square
#791B8D #8D401B #2F8D1B #1B688D
split-complementary
#791B8D #688D1B #1B8D40
monochromatic
#210726 #4D115A #791B8D #A525C0 #C247DC

Accessibility & contrast

On white

8.92
#791B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#791B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B8D
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B8D#FFFFFF#000000##FFFFFF
##791B8D1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#264D8B
Tritanopia (blue-blind)
#793454
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #791b8d;
/* rgb */ color: rgb(121, 27, 141);
/* oklch */ color: oklch(43.2% 0.183 319.7);
Tailwind
colors: {
  custom: {
    50: '#a464af',
    500: '#791b8d',
    950: '#000000',
  },
}
SCSS
$custom: #791b8d;
$custom-light: #a464af;
$custom-dark: #000000;
JSON
{
  "hex": "#791b8d",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 289.474,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43185,
    "c": 0.18345,
    "h": 319.7
  },
  "luminance": 0.06772
}

Semantic roles & 50–950 ramp

primary
#791B8D
secondary
#5BBD46
accent
#EB3D5C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #791B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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