#791B9C#791B9C

#791B9C is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.3% C 0.196 H 314.3°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#791B9C
RGBrgb(121, 27, 156)
HSLhsl(284, 70%, 36%)
HSVhsv(284, 83%, 61%)
CMYKcmyk(22.4%, 82.7%, 0%, 38.8%)
CIE-LABlab(32.37, 57.30, -49.71)
CIE-LCHlch(32.37, 75.86, 319.06°)
OKLaboklab(44.29% 0.1372 -0.1406)
OKLCHoklch(44.29% 0.196 314.3)
XYZxyz(14.2768, 7.2496, 32.0933)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791B9C #3E9C1B
analogous
#381B9C #791B9C #9C1B7E
triadic
#791B9C #9C791B #1B9C79
tetradic
#791B9C #9C381B #3E9C1B #1B7E9C
square
#791B9C #9C381B #3E9C1B #1B7E9C
split-complementary
#791B9C #7E9C1B #1B9C38
monochromatic
#280934 #511268 #791B9C #A124D0 #BA51E1

Accessibility & contrast

On white

8.57
#791B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#791B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791B9C
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791B9C#FFFFFF#000000##FFFFFF
##791B9C1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#0D4E99
Tritanopia (blue-blind)
#763B5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #791b9c;
/* rgb */ color: rgb(121, 27, 156);
/* oklch */ color: oklch(44.3% 0.196 314.3);
Tailwind
colors: {
  custom: {
    50: '#a465ba',
    500: '#791b9c',
    950: '#000000',
  },
}
SCSS
$custom: #791b9c;
$custom-light: #a465ba;
$custom-dark: #000000;
JSON
{
  "hex": "#791b9c",
  "rgb": {
    "r": 121,
    "g": 27,
    "b": 156
  },
  "hsl": {
    "h": 283.721,
    "s": 70.492,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4429,
    "c": 0.1964,
    "h": 314.3
  },
  "luminance": 0.07249
}

Semantic roles & 50–950 ramp

primary
#791B9C
secondary
#6FC34F
accent
#ED3B6B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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