#791E9C#791E9C

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

Color values

HEX#791E9C
RGBrgb(121, 30, 156)
HSLhsl(283, 68%, 36%)
HSVhsv(283, 81%, 61%)
CMYKcmyk(22.4%, 80.8%, 0%, 38.8%)
CIE-LABlab(32.69, 56.37, -49.19)
CIE-LCHlch(32.69, 74.82, 318.89°)
OKLaboklab(44.51% 0.1349 -0.1391)
OKLCHoklch(44.51% 0.194 314.1)
XYZxyz(14.3492, 7.3943, 32.1174)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#791E9C #419C1E
analogous
#3A1E9C #791E9C #9C1E80
triadic
#791E9C #9C791E #1E9C79
tetradic
#791E9C #9C3A1E #419C1E #1E809C
square
#791E9C #9C3A1E #419C1E #1E809C
split-complementary
#791E9C #809C1E #1E9C3A
monochromatic
#290A35 #511469 #791E9C #A128CF #B956DE

Accessibility & contrast

On white

8.47
#791E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#791E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #791E9C
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##791E9C#FFFFFF#000000##FFFFFF
##791E9C1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#114F99
Tritanopia (blue-blind)
#763D5E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #791e9c;
/* rgb */ color: rgb(121, 30, 156);
/* oklch */ color: oklch(44.5% 0.194 314.1);
Tailwind
colors: {
  custom: {
    50: '#a466ba',
    500: '#791e9c',
    950: '#000000',
  },
}
SCSS
$custom: #791e9c;
$custom-light: #a466ba;
$custom-dark: #000000;
JSON
{
  "hex": "#791e9c",
  "rgb": {
    "r": 121,
    "g": 30,
    "b": 156
  },
  "hsl": {
    "h": 283.333,
    "s": 67.742,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44514,
    "c": 0.19372,
    "h": 314.1
  },
  "luminance": 0.07394
}

Semantic roles & 50–950 ramp

primary
#791E9C
secondary
#72C254
accent
#EB3D6D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #791E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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